- fix Building without Nagra not possible at Nagra_Merlin https://trac.streamboard...
[oscam.git] / webif / Makefile
blobedd78791b9cdf96cd424c62f384a96579692a006
1 HOSTCC ?= gcc
2 HOSTCFLAGS ?= -O2 \
3 -W -Wall -Wextra -Wno-sign-compare \
4 -Wshadow -Wformat-security -Wstrict-prototypes
6 # Setup quiet build
7 Q =
8 SAY = @true
9 ifndef V
10 Q = @
11 NP = --no-print-directory
12 SAY = @echo
13 endif
15 all: pages.c
17 pages.c: pages_gen
18 $(SAY) "GEN webif/$@"
19 $(Q)./pages_mkdep
20 $(Q)./pages_gen
22 -include pages.dep
24 pages_gen: Makefile pages_gen.c
25 $(SAY) "HOSTCC webif/$@"
26 $(Q)$(HOSTCC) $(HOSTCFLAGS) ../minilzo/minilzo.c pages_gen.c -o $@
28 clean:
29 @-for FILE in pages_gen pages.dep pages.bin pages.bin.compressed pages.h pages.c is_defined.txt; do \
30 if [ -f $$FILE ]; then echo "RM webif/$$FILE"; fi; \
31 rm -rf $$FILE; \
32 done
34 distclean: clean