home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / util_src / makefile.cmi < prev    next >
Encoding:
Makefile  |  1993-07-29  |  777 b   |  45 lines

  1. #
  2. # Makefile for utils
  3. # for use with a unix hosted gcc based cross development system to produce
  4. # minix format executables.
  5. #
  6. # define CROSSDIR appropriately, and hit make
  7. #
  8. CROSSDIR = /dsrg/bammi/cross-minix
  9. CROSSBIN = $(CROSSDIR)/bin
  10. CROSSLIB = $(CROSSDIR)/lib
  11. CROSSINC = $(CROSSDIR)/include
  12.  
  13. CC=$(CROSSBIN)/mgcc
  14. CFLAGS = -O -I. -I$(CROSSINC) -Datariminix=1 -D__NO_PROTO__
  15. # -D__OLD_OPEN_P__
  16.  
  17. ALL = ld car nm
  18.  
  19. all: $(ALL)
  20. #
  21. # the 'regular' linker, produces atari executables
  22. #
  23.  
  24. ld : ld.o
  25.     $(CC) -o ld ld.o -v
  26.  
  27. ld.o : ld.c gnu-ar.h gnu-out.h minix-out.h symseg.h
  28. #oqsort.o : oqsort.c
  29.  
  30. car : ar.o
  31.     $(CC) -o car ar.o -s
  32.  
  33. ar.o : ar.c gnu-ar.h gnu-out.h
  34.  
  35. nm : nm.o
  36.     $(CC) -o nm nm.o
  37.  
  38. nm.o : nm.c gnu-ar.h gnu-out.h
  39.  
  40. clean:
  41.     rm -f *.o
  42.  
  43. realclean: clean
  44.     rm -f $(ALL) report core
  45.