]> Shamusworld >> Repos - rmac/blobdiff - makefile
ELF support for RMAC.
[rmac] / makefile
index 8b46eed9cd6273ac53d3533d1ad275dfe0c5fbad..8eef37062297f6be65a12b0155d7e0ade3b5e80e 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,15 +1,14 @@
 #
 # 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 = $(CROSS)gcc
 HOSTCC = gcc
 
-CFLAGS = -g -D__GCCUNIX__ -I. -O2
+CFLAGS = -std=c99 -D_DEFAULT_SOURCE -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 riscasm.c rmac.c sect.c symbol.c token.c 
 
@@ -20,9 +19,13 @@ OBJS = amode.o debug.o direct.o eagen.o error.o expr.o listing.o mach.o macro.o
 #
 
 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
@@ -38,7 +41,7 @@ risckw.h : kwtab kwgen
        ./kwgen mr <risctab >risckw.h
 
 #
-# Build Tools
+# Build tools
 #
 
 kwgen.o : kwgen.c
@@ -54,7 +57,7 @@ kwgen : kwgen.o
        $(HOSTCC) $(CFLAGS) -o 68kgen 68kgen.o
 
 #
-# Build RMAC Executable
+# Build RMAC executable
 #
 
 amode.o : amode.c
@@ -112,7 +115,7 @@ rmac : $(OBJS)
        $(CC) $(CFLAGS) -o rmac $(OBJS)
 
 #
-# Clean Build Environment
+# Clean build environment
 #
 
 clean: