Move dukboot from 'lib' to 'deps' to align more closely with Clib

parent 71a274cc
......@@ -3,3 +3,5 @@ dukboots
node_modules
dukboot.exe
makeheaders.exe
**/*.o
**/*.h
CC = gcc
CFLAGS = -fopenmp -I./lib/duktape -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer -D_GNU_SOURCE
CFLAGS = -fopenmp -Ideps -Os -pedantic -std=c99 -Wall -fstrict-aliasing -fomit-frame-pointer -D_GNU_SOURCE
LDFLAGS = -static -static-libgcc -lm
ifeq ($(OS),Windows_NT)
......@@ -13,7 +13,7 @@ endif
SRC = $(wildcard src/*.c)
HEADERS = $(SRC:.c=.h)
OBJS = $(SRC:.c=.o)
DEPS = $(wildcard lib/duktape/*.c)
DEPS = $(wildcard deps/duktape/*.c)
DEPOBJS = $(DEPS:.c=.o)
main: $(MAKEHEADERS) $(HEADERS) $(DEPOBJS) $(OBJS)
......
#include <duktape.h>
#include "duktape/duktape.h"
#include "app_assert_safe_path.h"
duk_int_t app_assert_safe_path (duk_context *ctx) {
// Safety check filename argument
......
#include <duktape.h>
#include "duktape/duktape.h"
#include "app_push_argv.h"
int app_push_argv(duk_context *ctx, int argc, char *argv[]) {
// Construct argv array
......
#include "duktape.h"
#include "duktape/duktape.h"
#include <dirent.h>
#include "app_push_dir.h"
int app_push_dir (duk_context *ctx) {
......
#include "duktape.h"
#include "duktape/duktape.h"
#include "app_push_environ.h"
int app_push_environ(duk_context *ctx) {
int keylen = 0;
......
#include "duktape.h"
#include "duktape/duktape.h"
#include "app_push_trusted_function.h"
int app_push_trusted_function (duk_context *ctx) {
// Safety check filename argument
......
#include "duktape.h"
#include "duktape/duktape.h"
#include "app_stash_global_string.h"
void app_stash_global_string(duk_context *ctx, char *name) {
duk_push_global_stash(ctx); // summon the magic stash object
......
#include "duktape.h"
#include "duktape/duktape.h"
#include "app_unstash_global_string.h"
void app_unstash_global_string(duk_context *ctx, char *name) {
duk_push_global_stash(ctx); // summon the magic stash object
......
#include "duktape.h"
#include "duktape/duktape.h"
#include <libgen.h>
#include "c_join_paths.h"
char* c_join_paths(const char *base, const char *filename) {
......
#include <stdio.h>
#include "duktape.h"
#include "duktape/duktape.h"
#include "c_read_script_file.h"
int c_read_script_file (const char *joined_path, char **message, char **buffer, size_t *bytesRead) {
// Open the file
......
// this line intentionally left blank.
// Define externs
extern char **environ;
......@@ -11,11 +9,9 @@ extern char **environ;
#include <fcntl.h>
#endif
#include <omp.h>
#include "duktape.h"
#include "duktape/duktape.h"
// Include all our functions
#include "main.h"
int main(int argc, char *argv[] /* char *environ[] */) {
// Re-open stdin and stdout in binary mode
freopen(NULL, "rb", stdin);
......
#include "duktape.h"
#include "duktape/duktape.h"
#include "native_import.h"
int native_import (duk_context *ctx, const char *filename) {
char *message = NULL;
......
#include "duktape.h"
#include "duktape/duktape.h"
#include "native_print.h"
duk_ret_t native_print(duk_context *ctx) {
duk_push_string(ctx, " ");
......
#include "duktape.h"
#include "duktape/duktape.h"
#include "queue_create.h"
int queue_create(duk_context *ctx, char *name) {
// Create a top-level Array on the heap stash with the given name
......
#include "duktape.h"
#include "duktape/duktape.h"
#include "queue_push_queue.h"
int queue_push_queue(duk_context *ctx, char *name) {
duk_push_heap_stash(ctx);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment