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 / startup / makefile < prev    next >
Encoding:
Makefile  |  1994-12-11  |  656 b   |  40 lines

  1. # make startup-files
  2. # 13-Apr-94 G. Nikl
  3. # 14-Apr-94 M. Fleischer clean+veryclean added
  4.  
  5. VPATH=../sources/startup
  6.  
  7. OPTIONS=-I ../sources/headers -O3 -fbaserel
  8.  
  9. %.o: %.c
  10.     gcc $(OPTIONS) -c $^ 2>&1|tee $*.err
  11.     -if test ! -s $*.err; then rm $*.err; fi
  12.  
  13. .PHONY: all filelist subdirs clean veryclean
  14.  
  15. all: nrcrt0.o nbcrt0.o ncrt0.o libinit.o libinitr.o devinit.o
  16.  
  17. subdirs:
  18.  
  19. filelist:
  20.  
  21. clean:
  22.  
  23. veryclean:
  24.     -rm *.o
  25.  
  26. # baserelative resident startup-code
  27.  
  28. nrcrt0.o: nrcrt0.S
  29.     gcc -O3 -c -msmall-code -resident $^
  30.  
  31. # baserelative startup code
  32.  
  33. nbcrt0.o: nbcrt0.S
  34.     gcc -O3 -c -msmall-code -fbaserel $^
  35.  
  36. # normal (=large) startup code
  37.  
  38. ncrt0.o: ncrt0.S
  39.     gcc -O3 -c $^
  40.