X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=makefile;h=e784557287dae6fbee56df1d9bc33828ccde7ddb;hb=741d94dd198fde4cfa058127a43e3071a47bd578;hp=d49541a062f269417a2e07ac90b2f9baaa38d34f;hpb=ef2a73f70f65ceffe7bf93f15e074289fd488175;p=rln diff --git a/makefile b/makefile index d49541a..e784557 100644 --- a/makefile +++ b/makefile @@ -1,16 +1,36 @@ -rm=/bin/rm -f -CC= cc -PROGNAME= rln -LIBS= +# Makefile for Reboot's Linker for Jaguar -CFLAGS= -g -I. -D__GCCUNIX__ +RM =/bin/rm -f +CC = gcc +PROGNAME = rln +LIBS = + +# Figure out which system we're compiling for, and set the appropriate variables + +OSTYPE := $(shell uname -a) + +ifeq "$(findstring Msys,$(OSTYPE))" "Msys" # Win32 + +OSDEFINE := WIN32 + +else # ??? + +OSDEFINE := __GCCUNIX__ + +endif + + +# Change this to -DWIN32 for Windows :-) +#CFLAGS = -g -I. -D__GCCUNIX__ +#CFLAGS = -g -I. -DWIN32 +CFLAGS = -g -I. -D$(OSDEFINE) SRCS = rln.c OBJS = rln.o .c.o: - $(rm) $@ + $(RM) $@ $(CC) $(CFLAGS) -c $*.c all: $(PROGNAME) @@ -19,4 +39,4 @@ $(PROGNAME) : $(OBJS) $(CC) $(CFLAGS) -o $(PROGNAME) $(OBJS) $(LIBS) clean: - $(rm) $(OBJS) $(PROGNAME) core *~ + $(RM) $(OBJS) $(PROGNAME) *~