summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-30 18:40:25 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-30 18:40:25 -0700
commit5c4cc39c56470b0a01274e69be703f0d4fc3080b (patch)
treedced6401e2eeec88b659f8781df424b5227af4ee /Makefile
parentf3a338a9af53f31f9a72de021950cbe725a6782f (diff)
downloadsubsurface-5c4cc39c56470b0a01274e69be703f0d4fc3080b.tar.gz
Start moving some of the non-parsing stuff out of 'parse.c'
Create a 'main.c' with the main routine and argument "parsing" etc. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 648912bd6..675fb50b6 100644
--- a/Makefile
+++ b/Makefile
@@ -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