thermometers/Makefile

changeset 8
e584bc0177df
parent 3
e854e3d704de
child 51
a03b6dac5398
equal deleted inserted replaced
7:d74b26b2f217 8:e584bc0177df
3 include ../Makefile.global 3 include ../Makefile.global
4 4
5 SRCS = main.c 5 SRCS = main.c
6 HDRS = main.h 6 HDRS = main.h
7 OBJS = main.o 7 OBJS = main.o
8 SLIBS = ../lib/libmbse.a
8 TARGET = thermometers 9 TARGET = thermometers
9 OTHER = Makefile 10 OTHER = Makefile
10 11
11 ############################################################################# 12 #############################################################################
12 13
13 .c.o: 14 .c.o:
14 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $< 15 ${CC} ${CFLAGS} ${INCLUDES} ${DEFINES} -c $<
15 16
16 all: ${TARGET} 17 all: ${TARGET}
17 18
18 thermometers: ${OBJS} 19 thermometers: ${OBJS} ${SLIBS}
19 ${CC} -o thermometers ${OBJS} ${LDFLAGS} ${LIBS} 20 ${CC} -o thermometers ${OBJS} ${LDFLAGS} ${LIBS} ${SLIBS}
20 21
21 clean: 22 clean:
22 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak 23 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak
23 24
24 install: all 25 install: all
51 done; \ 52 done; \
52 ${ECHO} '# End of generated dependencies' >>Makefile 53 ${ECHO} '# End of generated dependencies' >>Makefile
53 54
54 # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT 55 # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
55 # Dependencies generated by make depend 56 # Dependencies generated by make depend
56 main.o: main.h 57 main.o: ../lib/mbselib.h main.h
57 # End of generated dependencies 58 # End of generated dependencies

mercurial