home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / src / amiga / libnix-0.7-src.lha / libnix-0.7 / sources / misc / makefile < prev    next >
Encoding:
Makefile  |  1995-01-18  |  836 b   |  37 lines

  1. SOURCEDIR=../../sources/misc
  2.  
  3. OBJECTS=detach.o swapstack.o
  4.  
  5. OPTIONS=-I $(SOURCEDIR)/../headers $(CFLAGS)
  6.  
  7. vpath %.c $(SOURCEDIR)
  8.  
  9. REDEF=-D _DOSBase=___DOSBase \
  10.       -D _UtilityBase=___UtilityBase \
  11.       -D _MathIeeeSingBasBase=___MathIeeeSingBasBase \
  12.       -D _MathIeeeSingTransBase=___MathIeeeSingTransBase \
  13.       -D _MathIeeeDoubBasBase=___MathIeeeDoubBasBase \
  14.       -D _MathIeeeDoubTransBase=___MathIeeeDoubTransBase \
  15.       -D _LocaleBase=___LocaleBase
  16.  
  17. #Use private library bases to avoid naming collisions
  18. %.o: %.c
  19.     gcc $(OPTIONS) -S $^ -o $*.S 2>&1|tee $*.err
  20.     gcc -E -traditional -P $(REDEF) $*.S -o $*2.S
  21.     gcc $(OPTIONS) $*2.S -c -o $*.o
  22.     -rm $*.S $*2.S
  23.     -if test ! -s $*.err; then rm $*.err; fi
  24.  
  25. .PHONY: all filelist subdirs clean veryclean
  26.  
  27. all: $(OBJECTS)
  28.  
  29. filelist:
  30.  
  31. subdirs:
  32.  
  33. clean:
  34.     -rm *.o *.err
  35.  
  36. veryclean: clean
  37.