home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 9 / FreshFishVol9-CD2.bin / bbs / gnu / libnix-0.8-src.lha / libnix-0.8 / examples / makefile < prev    next >
Encoding:
Makefile  |  1994-12-11  |  405 b   |  22 lines

  1. # Some examples
  2.  
  3. .PHONY: all
  4.  
  5. all: lib libr dev helloworld
  6.  
  7. # normal library
  8. lib: libinit.o simplelib.c
  9.     gcc -nostdlib -O3 -fbaserel $^ -o $@
  10.  
  11. # multibase library
  12. libr: libinitr.o simplelib.c
  13.     gcc -nostdlib -O3 -resident $^ -o $@
  14.  
  15. # device
  16. dev: devinit.o simpledev.c
  17.     gcc -nostdlib -O3 -fbaserel $^ -o $@
  18.  
  19. # helloworld
  20. helloworld: nbcrt0.o helloworld.c libstubs.a
  21.     gcc -nostdlib -O3 -s -fbaserel $^ -o $@
  22.