Permalink
Browse files

first commit

  • Loading branch information...
1 parent 18b7253 commit 6d218f0e7aa16441d4543106021ea8348c84cf5b @txus committed Nov 18, 2012
View
@@ -1,4 +1,9 @@
build
*.o
+bin/vm
tests/*_tests
-tests/tests.log
+tests/tests.log
+*.DSYM
+callgrind.out*
+cachegrind.out*
+bin/terror
View
@@ -1,4 +1,5 @@
-CFLAGS=-g -O2 -Wall -Wextra -Isrc -rdynamic -DNDEBUG $(OPTFLAGS)
+CC=clang
+CFLAGS=-g -O2 -Wall -Werror -Isrc -DNDEBUG $(OPTFLAGS)
LIBS=-ldl $(OPTLIBS)
PREFIX?=/usr/local
@@ -8,13 +9,13 @@ OBJECTS=$(patsubst %.c,%.o,$(SOURCES))
TEST_SRC=$(wildcard tests/*_tests.c)
TESTS=$(patsubst %.c,%,$(TEST_SRC))
-TARGET=build/libYOUR_LIBRARY.a
+TARGET=build/libforkix.a
SO_TARGET=$(patsubst %.a,%.so,$(TARGET))
# The Target Build
all: $(TARGET) $(SO_TARGET) tests
-dev: CFLAGS=-g -Wall -Isrc -Wall -Wextra $(OPTFLAGS)
+dev: CFLAGS=-g -Wall -Isrc -Wall -Werror $(OPTFLAGS)
dev: all
$(TARGET): CFLAGS += -fPIC
View
@@ -0,0 +1,9 @@
+#include <stdio.h>
+#include <forkix/dbg.h>
+
+int
+main(int argc, char *argv[])
+{
+ printf("Hello forkix!\n");
+ return 0;
+}
Oops, something went wrong.

0 comments on commit 6d218f0

Please sign in to comment.