diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,5 +1,11 @@ CC=gcc CFLAGS=-Wall -Wno-pointer-sign -g -parse: parse.c dive.h - $(CC) $(CFLAGS) -o parse `xml2-config --cflags` parse.c `xml2-config --libs` +parse: main.o parse.o + $(CC) $(LDLAGS) -o parse main.o parse.o `xml2-config --libs` + +parse.o: parse.c dive.h + $(CC) $(CFLAGS) -c `xml2-config --cflags` parse.c + +main.o: main.c dive.h + $(CC) $(CFLAGS) -c main.c |