potator/Makefile.sdl1win

58 lines
2.3 KiB
Makefile

# Project: PotatorSDL
# Makefile created by Dev-C++ 4.9.9.2
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES =
OBJ = win/platform/SDL/main.o win/common/controls.o win/common/gpu.o win/common/memorymap.o win/common/sound.o win/common/timer.o win/common/watara.o win/common/m6502/m6502.o $(RES)
LINKOBJ = win/platform/SDL/main.o win/common/controls.o win/common/gpu.o win/common/memorymap.o win/common/sound.o win/common/timer.o win/common/watara.o win/common/m6502/m6502.o $(RES)
LIBS = -L"D:/GP2XSDK/lib" -lmingw32 -liconv -lgp2x -lSDL_image -lSDL_mixer -lSDL_ttf -lSDL_inifile -lSDLmain -lSDL -lpng -ljpeg -lvorbisidec -lmad -lfreetype -lz -lunicodefont -lgmon -pg -mwindows
INCS = -I"D:/GP2XSDK/include/GP2X" -I"D:/GP2XSDK/include/SDL" -I"D:/GP2XSDK/include"
CXXINCS = -I"D:/GP2XSDK/include/GP2X" -I"D:/GP2XSDK/include/SDL" -I"D:/GP2XSDK/lib/gcc/mingw32/3.4.2/include" -I"D:/GP2XSDK/include/c++/3.4.2/backward" -I"D:/GP2XSDK/include/c++/3.4.2/mingw32" -I"D:/GP2XSDK/include/c++/3.4.2" -I"D:/GP2XSDK/include"
BIN = PotatorSDL.exe
CXXFLAGS = $(CXXINCS) -DWIN32 -DWINDOWS -D_SDL_ -fexpensive-optimizations -O3 -pg -mwindows
CFLAGS = $(INCS) -D_REENTRANT -DWIN32 -DWINDOWS -D_SDL_ -fexpensive-optimizations -O3 -pg -mwindows
RM = rm -f
MKDIR = cygwin-mkdir -p
.PHONY: all all-before all-after clean clean-custom
all: all-before PotatorSDL.exe all-after
all-before:
$(MKDIR) "win/platform/SDL"
$(MKDIR) "win/common"
$(MKDIR) "win/common/m6502"
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CC) $(LINKOBJ) -o $@ $(LIBS)
win/platform/SDL/main.o: platform/SDL/main.c
$(CC) -c platform/SDL/main.c -o win/platform/SDL/main.o $(CFLAGS)
win/common/controls.o: common/controls.c
$(CC) -c common/controls.c -o win/common/controls.o $(CFLAGS)
win/common/gpu.o: common/gpu.c
$(CC) -c common/gpu.c -o win/common/gpu.o $(CFLAGS)
win/common/memorymap.o: common/memorymap.c
$(CC) -c common/memorymap.c -o win/common/memorymap.o $(CFLAGS)
win/common/sound.o: common/sound.c
$(CC) -c common/sound.c -o win/common/sound.o $(CFLAGS)
win/common/timer.o: common/timer.c
$(CC) -c common/timer.c -o win/common/timer.o $(CFLAGS)
win/common/watara.o: common/watara.c
$(CC) -c common/watara.c -o win/common/watara.o $(CFLAGS)
win/common/m6502/m6502.o: common/m6502/m6502.c
$(CC) -c common/m6502/m6502.c -o win/common/m6502/m6502.o $(CFLAGS)