home *** CD-ROM | disk | FTP | other *** search
Makefile | 1993-07-29 | 1.3 KB | 71 lines |
- #
- # Makefile for utils for Atari Cross Compilers
- # - adjust CROSSDIR below for your setup
- # - define GCC to be the path to your hosts C compiler (gcc preferred)
- # - If you are going to run the cross linker on a machine that aligns structures
- # at longword boundaries (machines such as Sun-Sparc, Convex etc) add
- # -DWORD_ALIGNED to CFLAGS
- #
- #
- CROSSDIR = /dsrg/bammi/cross-gcc
- CROSSBIN = $(CROSSDIR)/bin
- CROSSLIB = $(CROSSDIR)/lib
- CROSSINC = $(CROSSDIR)/include
-
- # Host GCC
- CC=/usr/local/bin/gcc
- # Host include dir
- HOSTINC = /usr/include
-
- CFLAGS = -O -g -I. -I$(HOSTINC) -I$(CROSSINC) -DCROSSATARI=1 \
- -DCROSSDIR=\"$(CROSSDIR)\" -DCROSSLIB=\"$(CROSSLIB)\"
-
- ALL = ld sym-ld nm car size size68
-
- #
- # the 'regular' linker, produces atari executables
- #
- ld : ld.o
- $(CC) -o ld ld.o
-
- #
- # the 'other' linker, produces atari gdb compat symb files
- #
- sym-ld : sym-ld.o
- $(CC) -o sym-ld sym-ld.o
-
- #
- # obj file describer?
- #
- nm : nm.o
- $(CC) -o nm nm.o
-
- #
- # Object file sizes
- #
- size: size.o
- $(CC) -o size size.o
-
- #
- # ar - archiver/librarian
- #
- car : ar.o
- $(CC) -o car ar.o
-
- size68: size68.c
- $(CC) -O -o size68 size68.c -s
-
- install: $(ALL)
- cp ld $(CROSSLIB)/gcc-ld
- cp nm $(CROSSBIN)/cnm
- cp car $(CROSSBIN)/car
- cp size $(CROSSBIN)/csize
- cp size68 $(CROSSBIN)/csize68
- cp sym-ld $(CROSSBIN)/sym-ld
-
- clean:
- rm -f *.o
-
- realclean: clean
- rm -f $(ALL) core report
-