UDI/Tools - Moved udi* tools to UDI/ tree
[tpg/acess2.git] / UDI / Tools / src / Makefile
diff --git a/UDI/Tools/src/Makefile b/UDI/Tools/src/Makefile
new file mode 100644 (file)
index 0000000..970dc5c
--- /dev/null
@@ -0,0 +1,25 @@
+
+OBJS = main.o inifile.o build.o udiprops.o
+BIN = ../udibuild
+CFLAGS = -std=c99 -MMD -MP -g
+
+OBJS := $(OBJS:%=obj/%)
+
+.PHONY: all clean
+
+all: $(BIN)
+
+clean:
+       $(RM) $(BIN) $(OBJS) $(OBJS:%.o=%.d)
+
+$(BIN): $(OBJS)
+       @echo --- [CC] $@
+       @$(CC) -o $(BIN) $(OBJS) $(LDFLAGS)
+
+obj/%.o: %.c Makefile
+       @mkdir -p $(dir $@)
+       @echo --- [CC] $@
+       @$(CC) -o $@ -c $< $(CFLAGS)
+
+-include $(OBJS:%.o=%.d)
+

UCC git Repository :: git.ucc.asn.au