diff options
Diffstat (limited to 'code/util/Makefile')
-rw-r--r-- | code/util/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/code/util/Makefile b/code/util/Makefile new file mode 100644 index 0000000..acbae33 --- /dev/null +++ b/code/util/Makefile @@ -0,0 +1,22 @@ +include ../ecp/Makefile.posix +CFLAGS=$(CFLAGS_PL) -I../ecp +LDFLAGS=$(LDFLAGS_PL) + +obj=util.o +dep=../ecp/build-posix/*.a ./libecputil.a + + +%.o: %.c %.h + $(CC) $(CFLAGS) -c $< + +all: libecputil.a mknode + +libecputil.a: $(obj) + $(AR) rcs libecputil.a $(obj) + +mknode: mknode.o libecputil.a + $(CC) -o $@ $< $(dep) $(LDFLAGS) + +clean: + rm -f *.o *.a + rm -f mknode |