X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=makefile;h=33b9cfe43d5e4227b39f1779b50031ed5a310efc;hp=74ac5dc5ca0a6d69967f20256560eda09f56ec09;hb=d0c28c349ddfb8393568037f68bddbe8979ce0df;hpb=d28f432296e812643e236d1bfc9b556a7b11c461 diff --git a/makefile b/makefile index 74ac5dc..33b9cfe 100644 --- a/makefile +++ b/makefile @@ -1,27 +1,31 @@ # # RMAC - Reboot's Macro Assembler for the Atari Jaguar # Copyright (C) 199x Landon Dyer, 2011 Reboot & Friends -# MAKEFILE for Non-Windows Compilation -# Currently tested against Cygwin under Windows XP Pro +# MAKEFILE for *nix # rm = /bin/rm -f -CC = cc +CC = $(CROSS)gcc +HOSTCC = gcc -CFLAGS = -g -D__GCCUNIX__ -I. +CFLAGS = -g -D__GCCUNIX__ -I. -O2 -SRCS = amode.c debug.c direct.c eagen.c error.c expr.c listing.c mach.c macro.c mark.c object.c procln.c risca.c rmac.c sect.c symbol.c token.c +SRCS = amode.c debug.c direct.c eagen.c error.c expr.c listing.c mach.c macro.c mark.c object.c procln.c riscasm.c rmac.c sect.c symbol.c token.c -OBJS = amode.o debug.o direct.o eagen.o error.o expr.o listing.o mach.o macro.o mark.o object.o procln.o risca.o rmac.o sect.o symbol.o token.o +OBJS = amode.o debug.o direct.o eagen.o error.o expr.o listing.o mach.o macro.o mark.o object.o procln.o riscasm.o rmac.o sect.o symbol.o token.o # # Build everything # all : mntab.h 68ktab.h kwtab.h risckw.h rmac + @echo + @echo "Don't forget to bump the version number before commiting!" + @echo # -# Generated Sources for State Machines and Keyword, Directive and Mnemonic Definitions +# Generated sources for state machines and keyword, directive and mnemonic +# definitions # mntab.h : mntab 68kmn kwgen @@ -37,23 +41,23 @@ risckw.h : kwtab kwgen ./kwgen mr risckw.h # -# Build Tools +# Build tools # kwgen.o : kwgen.c - $(CC) $(CFLAGS) -c kwgen.c + $(HOSTCC) $(CFLAGS) -c kwgen.c kwgen : kwgen.o - $(CC) $(CFLAGS) -o kwgen kwgen.o + $(HOSTCC) $(CFLAGS) -o kwgen kwgen.o 68kgen.o : 68kgen.c - $(CC) $(CFLAGS) -c 68kgen.c + $(HOSTCC) $(CFLAGS) -c 68kgen.c 68kgen : 68kgen.o - $(CC) $(CFLAGS) -o 68kgen 68kgen.o + $(HOSTCC) $(CFLAGS) -o 68kgen 68kgen.o # -# Build RMAC Executable +# Build RMAC executable # amode.o : amode.c @@ -111,7 +115,7 @@ rmac : $(OBJS) $(CC) $(CFLAGS) -o rmac $(OBJS) # -# Clean Build Environment +# Clean build environment # clean: