Debian Codegraph @

util/firmdl/Makefile

raw ◀ ▶
Source reconstructed at patch state 1 of 2 — not the installed (fully patched) source.
2 Debian patches touch this file
1 ### ==========================================================================
2 ### $Id: Makefile,v 1.9 2003/03/02 18:00:42 paolom Exp $
3 ### FILE: util/firmdl/Makefile - make firmware download utility
4 ### brickOS - the independent LEGO Mindstorms OS
5 ### --------------------------------------------------------------------------
6
7 # specify environment before including the common stuff
8 BUILDING_HOST_UTILS = true
9 include ../../Makefile.common
10
11 FIRMDL3 = firmdl3$(EXT)
12 MKIMG = mkimg$(EXT)
13 MAN1 = firmdl3.1
14
15 ALL_TARGETS = ../$(FIRMDL3) $(MKIMG)
16
17 all:: fastdl.h $(ALL_TARGETS)
18 @# nothing to do here but do it silently
19
20 $(MKIMG): mkimg.o srec.o
21 $(CC) $^ -o $@ $(CFLAGS) $(LDFLAGS)
22
23 ../$(FIRMDL3): firmdl.o srec.o rcx_comm.o
24 $(CC) $^ -o $@ $(CFLAGS) $(LDFLAGS)
25
26 fastdl.h: $(MKIMG) fastdl.srec
27 ./$(MKIMG) fastdl.srec > $@
28
29 depend::
30 @# nothing to do here but do it silently
31
32 install: install-stamp
33 @# nothing to do here but do it silently
34
35 install-stamp: $(ALL_TARGETS) $(MAN1)
36 cp -f ../$(FIRMDL3) $(bindir)
37 @if [ ! -d ${mandir}/man1 ]; then \
38 mkdir -p ${mandir}/man1; \
39 fi
40 cp -f $(MAN1) $(mandir)/man1/$(MAN1)
41 @touch $@
42
43 uninstall:
44 rm -f $(mandir)/man1/$(MAN1) $(bindir)/$(FIRMDL3) install-stamp
45
46 clean:
47 rm -f *.o *~ *.bak
48
49 realclean: clean
50 rm -f fastdl.h $(ALL_TARGETS)
51 @rm -f install-stamp
52
53 # remove debug symbols
54 strip:
55 strip $(ALL_TARGETS)
56
57 .PHONY: realclean clean install depend all
58
59
60 ### --------------------------------------------------------------------------
61 ### End of FILE: util/firmdl/Makefile
62 ### ==========================================================================