Debian Codegraph @

util/firmdl/Makefile

raw ◀ ▶
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 mkdir -p $(bindir)
37 cp -f ../$(FIRMDL3) $(bindir)
38 @if [ ! -d ${mandir}/man1 ]; then \
39 mkdir -p ${mandir}/man1; \
40 fi
41 cp -f $(MAN1) $(mandir)/man1/$(MAN1)
42 @touch $@
43
44 uninstall:
45 rm -f $(mandir)/man1/$(MAN1) $(bindir)/$(FIRMDL3) install-stamp
46
47 clean:
48 rm -f *.o *~ *.bak
49
50 realclean: clean
51 rm -f fastdl.h $(ALL_TARGETS)
52 @rm -f install-stamp
53
54 # remove debug symbols
55 strip:
56 strip $(ALL_TARGETS)
57
58 .PHONY: realclean clean install depend all
59
60
61 ### --------------------------------------------------------------------------
62 ### End of FILE: util/firmdl/Makefile
63 ### ==========================================================================