Added text-infrastructure
[hrr.git] / Makefile.in
blobf5713e0f66b80e92a4bbd00223e0058ebe97f5b7
1 # m m mm mmm .----------. .---------------------. mmm mm m m
2 # 8 8 88 888 | .--------` | .------------------` 888 88 8 8
3 # 8 8 88 888 | ```````|`V```````| |``||``|`````| 888 88 8 8
4 # 8 8 88 888 `------ | | [] | |``````|| | [] | 888 88 8 8
5 # 8 8 88 888 |`````` | | | ````|```` | | 888 88 8 8
6 # ` ` `` ``` ``````````````> |````````````| |`` ``` `` ` `
7 # ==============` `---`
8 # L A B O R A T O R I E S
9 #
10 #This file is part of Hacker Radio Rec.
12 #Hacker Radio Rec is free software: you can redistribute it and/or
13 #modify it under the terms of the GNU General Public License as
14 #published by the Free Software Foundation, either version 3 of
15 #the License or (at your option) any later version.
17 #Hacker Radio Rec is distributed in the hope that it will be
18 #useful, but WITHOUT ANY WARRANTY; without even the implied
19 #warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20 #See the GNU General Public License for more details.
22 # Copyright (C) 2009, Thea DeSilva
23 # You can find a copy of GNU General Public License in COPYING
26 CC = @CC@
27 LEX = lex
28 AR = ar
29 RANLIB=ranlib
30 CFLAGS = @CFLAGS@
31 CPPFLAGS = @CPPFLAGS@
32 LDFLAGS = @LDFLAGS@
33 LIBS=@LIBS@
34 PREFIX=@PREFIX@
36 CLEAN_THIS=hrr hrr.core csig help_text.h compile_stats.h lex.yy.c
37 OBJS= main.o bot.o proc.o lex.yy.o uu.o spans.o
39 CFLAGS+=-I./gui/ -I./audio/ -I./not/
40 LDFLAGS+=./gui/libgui.a \
41 ./audio/libaudio.a \
42 ./not/libnot.a
45 hrr: ${OBJS} gui/libgui.a audio/libaudio.a not/libnot.a
46 ${CC} -o hrr ${OBJS} ${LDFLAGS} ${LIBS}
48 lex.yy.c: config_file.l
49 ${LEX} config_file.l
51 %.o: %.c
52 ${CC} -c ${CFLAGS} -o $@ $<
54 gui/libgui.a:
55 cd ./gui && make
57 audio/libaudio.a:
58 cd ./audio && make
60 not/libnot.a:
61 cd ./not && make
63 bless:
64 cd ./not && make bless
65 cd ./audio && make bless
66 cd ./gui && make bless
67 chmod +x ./tools/gpg_bless
68 ./tools/gpg_bless
70 bot.o: help_text.h
72 help_text.h: MANUAL
73 chmod +x ./tools/bin2head
74 ./tools/bin2head const\ char\ help_text\[\] < MANUAL > help_text.h
76 install: hrr
77 cp hrr ${PREFIX}/bin/hrr
79 clean:
80 cd ./not && make clean
81 cd ./audio && make clean
82 cd ./gui && make clean
83 rm -f ${OBJS} ${CLEAN_THIS}