src/Makefile

changeset 21
537aec525835
parent 0
e78e463e1aa9
child 23
f44a185b678b
--- a/src/Makefile	Fri Aug 30 11:23:44 2013 +0200
+++ b/src/Makefile	Thu Jan 23 09:19:37 2014 +0100
@@ -28,14 +28,17 @@
 
 include ../conf.mk
 
-DST = ../build
+SRC  = c2html.c
+SRC += codegens.c
+SRC += ccodegen.c
+SRC += javacodegen.c
 
-include obj.mk
+OBJ = $(SRC:%.c=../build/%$(OBJ_EXT))
 
-$(BIN): $(OBJ)
-	$(LD) -o $(DST)/$@ $^ $(LDFLAGS)
+all: $(OBJ)
+	$(LD) -o ../build/$(BIN) $^ $(LDFLAGS)
 	
 
-$(DST)/%.$(OBJEXT): %.c
+../build/%$(OBJ_EXT): %.c
 	$(CC) -o $@ $(CFLAGS) -c $<
 

mercurial