aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-31 10:20:46 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-08-31 10:20:46 -0700
commit8e95ded57bdbaa66ba1c2ec25c55a56d53bce943 (patch)
tree810f2c0d7afe5bd9faafa0268bfc3de00d900735 /Makefile
parent3aa54e206ad214d21a53599a847ae07f1c039a84 (diff)
downloadsubsurface-8e95ded57bdbaa66ba1c2ec25c55a56d53bce943.tar.gz
Split up profile frame generation into its own file.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b69ddb2b9..b07322381 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,10 @@
CC=gcc
CFLAGS=-Wall -Wno-pointer-sign -g
-parse: main.o parse.o
- $(CC) $(LDLAGS) -o parse main.o parse.o `xml2-config --libs` \
+OBJS=main.o profile.o parse.o
+
+parse: $(OBJS)
+ $(CC) $(LDLAGS) -o parse $(OBJS) `xml2-config --libs` \
`pkg-config --libs gtk+-2.0`
parse.o: parse.c dive.h
@@ -10,3 +12,6 @@ parse.o: parse.c dive.h
main.o: main.c dive.h
$(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c main.c
+
+profile.o: profile.c dive.h
+ $(CC) $(CFLAGS) `pkg-config --cflags gtk+-2.0` -c profile.c