2 |
2 |
3 include ../Makefile.global |
3 include ../Makefile.global |
4 |
4 |
5 SRCS = $(wildcard *.c) |
5 SRCS = $(wildcard *.c) |
6 HDRS = $(wildcard *.h) |
6 HDRS = $(wildcard *.h) |
7 OBJS = lcdfont10x16.h $(SRCS:.c=.o) |
7 OBJS = $(SRCS:.c=.o) |
8 SLIBS = |
8 SLIBS = |
9 TARGET = brewpanel |
9 TARGET = brewpanel |
10 OTHER = Makefile lcdfont5x8.bmp |
10 OTHER = Makefile lcdfont5x8.bmp buildfont.sh |
11 |
11 |
12 ############################################################################# |
12 ############################################################################# |
13 |
13 |
14 .c.o: |
14 .c.o: |
15 ${CC} ${CFLAGS} ${SDL_CFLAGS} ${INCLUDES} ${DEFINES} -c $< |
15 ${CC} ${CFLAGS} ${SDL_CFLAGS} ${INCLUDES} ${DEFINES} -c $< |
17 all: ${TARGET} |
17 all: ${TARGET} |
18 |
18 |
19 brewpanel: ${OBJS} ${SLIBS} |
19 brewpanel: ${OBJS} ${SLIBS} |
20 ${CC} -o ${TARGET} ${OBJS} ${LDFLAGS} ${LIBS} ${SDL_LIBS} ${SLIBS} |
20 ${CC} -o ${TARGET} ${OBJS} ${LDFLAGS} ${LIBS} ${SDL_LIBS} ${SLIBS} |
21 |
21 |
22 lcdfont10x16.h: lcdfont5x8.bmp |
|
23 convert -scale 160x256 lcdfont5x8.bmp xbm:lcdfont10x16.h |
|
24 |
|
25 clean: |
22 clean: |
26 rm -f ${TARGET} *.o *.h~ *.c~ lcdfont5x8.h lcdfont10x16.h core filelist Makefile.bak |
23 rm -f ${TARGET} *.o *.h~ *.c~ core filelist Makefile.bak |
27 |
24 |
28 install: all |
25 install: all |
29 ${INSTALL} -c -s -g root -o root -m 0755 brewpanel ${BINDIR} |
26 ${INSTALL} -c -s -g root -o root -m 0755 brewpanel ${BINDIR} |
30 |
27 |
31 filelist: Makefile |
28 filelist: Makefile |