X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rln;a=blobdiff_plain;f=makefile;fp=makefile;h=e784557287dae6fbee56df1d9bc33828ccde7ddb;hp=e9e579778902db06817235f94ad18c3e0aae0f13;hb=7a68775424579a2e57843186afffb8e46b4314ad;hpb=4d8573013a97d0353447f959c14ccaddc1ff8c14 diff --git a/makefile b/makefile index e9e5797..e784557 100644 --- a/makefile +++ b/makefile @@ -5,9 +5,25 @@ 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. -D__GCCUNIX__ #CFLAGS = -g -I. -DWIN32 +CFLAGS = -g -I. -D$(OSDEFINE) SRCS = rln.c