From 3a4a0d3f39c25adb6bc8ead135ed39634b2bcfbf Mon Sep 17 00:00:00 2001 From: Nick White Date: Thu, 29 Jul 2010 17:50:14 +0100 Subject: Commit of kuni's original sdl/cygwin version --- makefile | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..4b7cc36 --- /dev/null +++ b/makefile @@ -0,0 +1,32 @@ +# spout +# SDLÍÑmakefile + +.SUFFIXES: .o .c + +SDL_LIB = /usr/local/lib +SDL_INCLUDE = /usr/local/include/SDL + +CC = gcc +CFLAGS = -I$(SDL_INCLUDE) -O2 -mno-cygwin + +LD = gcc +LDFLAGS = -L$(SDL_LIB) -L. -lmingw32 -lSDLmain -lSDL -mwindows + +PRGNAME = spout +OBJS = spout.o piece.o + + +$(PRGNAME).exe: $(OBJS) + $(LD) $(CFLAGS) -o $(PRGNAME).exe $(OBJS) $(RES) $(LDFLAGS) +.c.o: + $(CC) $(CFLAGS) -c -o $@ $< + +spout.o: piece.h font.h sintable.h +piece.c: piece.h + +clean: + rm -f $(PRGNAME).exe *.o + +run: $(PRGNAME).exe + $(PRGNAME).exe + -- cgit v1.2.3