brewpanel/Makefile

changeset 409
cdf68044adaf
child 412
f1a042a59b61
equal deleted inserted replaced
408:ec507c1f1df7 409:cdf68044adaf
1 # Makefile for the mbsePi-apps/brewpanel.
2
3 include ../Makefile.global
4
5 SRCS = $(wildcard *.c)
6 HDRS = $(wildcard *.h)
7 OBJS = lcdfont10x16.h $(SRCS:.c=.o)
8 SLIBS =
9 TARGET = brewpanel
10 OTHER = Makefile lcdfont5x8.bmp
11
12 #############################################################################
13
14 .c.o:
15 ${CC} ${CFLAGS} ${SDL_CFLAGS} ${INCLUDES} ${DEFINES} -c $<
16
17 all: ${TARGET}
18
19 brewpanel: ${OBJS} ${SLIBS}
20 ${CC} -o ${TARGET} ${OBJS} ${LDFLAGS} ${LIBS} ${SDL_LIBS} ${SLIBS}
21
22 lcdfont10x16.h: lcdfont5x8.bmp
23 convert -scale 160x256 lcdfont5x8.bmp xbm:lcdfont10x16.h
24
25 clean:
26 rm -f ${TARGET} *.o *.h~ *.c~ lcdfont5x8.h lcdfont10x16.h core filelist Makefile.bak
27
28 install: all
29 ${INSTALL} -c -s -g root -o root -m 0755 brewpanel ${BINDIR}
30
31 filelist: Makefile
32 BASE=`pwd`; \
33 BASE=`basename $${BASE}`; \
34 (for f in ${SRCS} ${HDRS} ${OTHER} ;do echo ${PACKAGE}-${VERSION}/$${BASE}/$$f; done) >filelist
35
36 depend:
37 @rm -f Makefile.bak; \
38 mv Makefile Makefile.bak; \
39 sed -e '/^# DO NOT DELETE/,$$d' Makefile.bak >Makefile; \
40 ${ECHO} '# DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT' \
41 >>Makefile; \
42 ${ECHO} '# Dependencies generated by make depend' >>Makefile; \
43 for f in ${SRCS}; \
44 do \
45 ${ECHO} "Dependencies for $$f:\c"; \
46 ${ECHO} "`basename $$f .c`.o:\c" >>Makefile; \
47 for h in `sed -n -e \
48 's/^#[ ]*include[ ]*"\([^"]*\)".*/\1/p' $$f`; \
49 do \
50 ${ECHO} " $$h\c"; \
51 ${ECHO} " $$h\c" >>Makefile; \
52 done; \
53 ${ECHO} " done."; \
54 ${ECHO} "" >>Makefile; \
55 done; \
56 ${ECHO} '# End of generated dependencies' >>Makefile
57
58 # DO NOT DELETE THIS LINE - MAKE DEPEND RELIES ON IT
59 # Dependencies generated by make depend
60 sdlgui.o: brewpanel.h sdlgui.h lcdfont10x16.h
61 dlgBrew.o: brewpanel.h dlgBrew.h sdlgui.h
62 brewpanel.o: brewpanel.h sdlgui.h dlgBrew.h
63 # End of generated dependencies

mercurial