Makefile

changeset 39
ac35daceb24c
parent 37
1a67185e5496
child 41
c06ab07fd29d
--- a/Makefile	Tue Aug 23 12:06:46 2016 +0200
+++ b/Makefile	Tue Aug 23 13:49:38 2016 +0200
@@ -36,10 +36,15 @@
 SRC += codegens.c
 SRC += ccodegen.c
 SRC += javacodegen.c
+SRC += ucx/allocator.c
+SRC += ucx/buffer.c
+SRC += ucx/list.c
+SRC += ucx/string.c
+SRC += ucx/utils.c
 
 OBJ = $(SRC:%.c=build/%$(OBJ_EXT))
 
-all: build build/$(BIN)
+all: build/ucx build/$(BIN)
 	
 build/$(BIN): $(OBJ)
 	$(LD) -o $@ $^ $(LDFLAGS)
@@ -47,8 +52,11 @@
 build/%$(OBJ_EXT): src/%.c
 	$(CC) -o $@ $(CFLAGS) -c $<
 	
+build/ucx: build
+	$(MKDIR) $@
+	
 build:
-	$(MKDIR) build
+	$(MKDIR) $@
 	
 test: build/$(BIN)
 	./build/$(BIN) test/ctestfile.c -o build/ctest.html \

mercurial