diff options
author | Nick White <git@njw.me.uk> | 2010-07-29 17:50:14 +0100 |
---|---|---|
committer | Nick White <git@njw.me.uk> | 2010-07-29 17:50:14 +0100 |
commit | 3a4a0d3f39c25adb6bc8ead135ed39634b2bcfbf (patch) | |
tree | abd75e66bf32c6d69e8e1e80816e58ee26c11920 /makefile |
Commit of kuni's original sdl/cygwin version
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 32 |
1 files changed, 32 insertions, 0 deletions
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 + |