Debian Codegraph @

lib/float/Makefile

raw
1 ### ==========================================================================
2 ### $Id: Makefile,v 1.9 2003/01/11 12:30:53 emanlove Exp $
3 ### FILE: lib/float/Makefile - make the floating point math library
4 ### brickOS - the independent LEGO Mindstorms OS
5 ### --------------------------------------------------------------------------
6
7 # our target
8 LIBTARGET = float
9
10 # sources
11 SOURCES = expandsf.s joinsf.s addsf3.s negsf2.s mulsf3.s divsf3.s \
12 floatsisf.s cmpsf2.s fixsfsi.s startsf.s normalsf.s
13
14
15 ##
16 ## no user servicable parts below
17 ##
18
19 LIBRARY = lib$(LIBTARGET).a
20
21 OBJECTS = $(SOURCES:.s=.o)
22
23
24 all:: promote-stamp
25 @# nothing to do here but do it silently
26
27 promote-stamp: $(LIBRARY)
28 cp -f $? ../
29 @touch $@
30
31 include ../../Makefile.common
32
33 $(LIBRARY): $(OBJECTS)
34 rm -f $@
35 $(AR) -sq $@ $(OBJECTS)
36
37 .depend: $(SOURCES)
38 $(MAKEDEPEND) $(SOURCES) > .depend
39
40 depend:: .depend
41 @# nothing to do here but do it silently
42
43 clean:
44 rm -f *.o *.map *.coff *.srec *.dis* *~ *.bak *.tgz
45
46 realclean: clean
47 rm -f $(LIBRARY) ../$(LIBRARY) .depend
48 @rm -f install-stamp promote-stamp tags TAGS
49
50 install: install-stamp
51 @# nothing to do here but do it silently
52
53 install-stamp: $(LIBRARY)
54 @if [ ! -d ${pkglibdir} ]; then \
55 mkdir -p ${pkglibdir}; \
56 fi
57 cp -f $? ${pkglibdir}/$?
58 @touch $@
59
60 uninstall:
61 @rm -f install-stamp
62
63 .PHONY: all promote-stamp depend clean realclean install install-stamp uninstall
64
65 ### --------------------------------------------------------------------------
66 ### End of FILE: lib/float/Makefile
67 ### ==========================================================================