Mercurial > ~darius > hgwebdir.cgi > wh1080
comparison Makefile @ 0:9dab44dcb331
Initial commit of Greg's code from http://www.lemis.com/grog/tmp/wh1080.tar.gz
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Tue, 09 Feb 2010 13:44:25 +1030 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:9dab44dcb331 |
---|---|
1 # $Id: Makefile,v 1.6 2009/12/20 00:40:24 grog Exp grog $ | |
2 # Makefile for wh-1080 | |
3 CC = cc | |
4 CFLAGS=-g -Wall -Wno-parentheses -I /usr/local/include | |
5 LOADLIBES=-lm -L /usr/local/lib -L /usr/local/lib/mysql -lusb -lmysqlclient | |
6 | |
7 HDRS= wh1080.h wh1080_dev.h | |
8 USRCS= util.c db.c | |
9 SRCS= wh1080.c ${USRCS} | |
10 DSRCS= local-compare.c ${USRCS} | |
11 RSRCS= report.c ${USRCS} | |
12 XSRCS= xreport.c ${USRCS} | |
13 YSRCS= yreport.c ${USRCS} | |
14 ALLSRC= ${SRCS} ${DSRCS} ${RSRCS} ${XSRCS} ${YSRCS} | |
15 UOBJS= ${USRCS:.c=.o} | |
16 OBJS= ${SRCS:.c=.o} | |
17 DOBJS= ${DSRCS:.c=.o} | |
18 ROBJS= ${RSRCS:.c=.o} | |
19 XOBJS= ${XSRCS:.c=.o} | |
20 YOBJS= ${YSRCS:.c=.o} | |
21 PROGS= wh1080 xreport yreport local-compare # report | |
22 | |
23 .c.s: | |
24 ${CC} $< -o $@ -S | |
25 | |
26 all: ${PROGS} | |
27 | |
28 wh1080: ${OBJS} ${HDRS} | |
29 ${CC} ${LOADLIBES} ${OBJS} -o $@ | |
30 | |
31 report: ${ROBJS} ${HDRS} | |
32 ${CC} ${LOADLIBES} ${ROBJS} -o $@ | |
33 | |
34 xreport: ${XOBJS} ${HDRS} | |
35 ${CC} ${LOADLIBES} ${XOBJS} -o $@ | |
36 | |
37 yreport: ${YOBJS} ${HDRS} | |
38 ${CC} ${LOADLIBES} ${YOBJS} -o $@ | |
39 | |
40 local-compare: ${DOBJS} ${HDRS} | |
41 ${CC} ${LOADLIBES} ${DOBJS} -o $@ | |
42 | |
43 # XXX get this right | |
44 DISTFILES = ${SRCS} ${HDRS} Makefile README LICENSE xreport.c yreport.c local-compare.c wundersend db plots web | |
45 | |
46 clean: | |
47 rm -f *~ *.o *.core wh1080 TAGS ${PROGS} | |
48 | |
49 dist: | |
50 echo DISTFILES ${DISTFILES} | |
51 tar czvf wh1080.tar.gz ${DISTFILES} | |
52 | |
53 .c.o: ${HDRS} | |
54 cc ${CFLAGS} -c -o $@ $< |