home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-07-29 | 777 b | 45 lines |
- #
- # Makefile for utils
- # for use with a unix hosted gcc based cross development system to produce
- # minix format executables.
- #
- # define CROSSDIR appropriately, and hit make
- #
- CROSSDIR = /dsrg/bammi/cross-minix
- CROSSBIN = $(CROSSDIR)/bin
- CROSSLIB = $(CROSSDIR)/lib
- CROSSINC = $(CROSSDIR)/include
-
- CC=$(CROSSBIN)/mgcc
- CFLAGS = -O -I. -I$(CROSSINC) -Datariminix=1 -D__NO_PROTO__
- # -D__OLD_OPEN_P__
-
- ALL = ld car nm
-
- all: $(ALL)
- #
- # the 'regular' linker, produces atari executables
- #
-
- ld : ld.o
- $(CC) -o ld ld.o -v
-
- ld.o : ld.c gnu-ar.h gnu-out.h minix-out.h symseg.h
- #oqsort.o : oqsort.c
-
- car : ar.o
- $(CC) -o car ar.o -s
-
- ar.o : ar.c gnu-ar.h gnu-out.h
-
- nm : nm.o
- $(CC) -o nm nm.o
-
- nm.o : nm.c gnu-ar.h gnu-out.h
-
- clean:
- rm -f *.o
-
- realclean: clean
- rm -f $(ALL) report core
-