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