Config sources are now in main directory

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@230 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud
2008-10-11 19:21:28 +00:00
parent 1f2c665a1d
commit f4ec27a25f
9 changed files with 42 additions and 1133 deletions

View File

@@ -19,62 +19,71 @@
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# Windows specific
ifdef COMSPEC
DELCOMMAND = del
BIN = grafx2.exe
COPT = -Wall -O -g -ggdb -Dmain=SDL_main
LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi
CC = gcc
ifdef COMSPEC
DELCOMMAND = del
BIN = grafx2.exe
CFGBIN = gfxcfg.exe
COPT = -Wall -O -g -ggdb -Dmain=SDL_main
LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi
CC = gcc
else
# Linux specific
DELCOMMAND = rm -rf
ifdef WIN32CROSS
#cross compile a Win32 executable
CC = i586-mingw32msvc-gcc
BIN = grafx2.exe
COPT = -Wall -O -g -ggdb -Dmain=SDL_main
LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi
else
BIN = grafx2
COPT = -Wall -c -g
LOPT = -lSDL -o $(BIN)
CC = gcc
endif
# Linux specific
DELCOMMAND = rm -rf
ifdef WIN32CROSS
#cross compile a Win32 executable
CC = i586-mingw32msvc-gcc
BIN = grafx2.exe
CFGBIN = gfxcfg.exe
COPT = -Wall -O -g -ggdb -Dmain=SDL_main
LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi
else
BIN = grafx2
CFGBIN = gfxcfg
COPT = -Wall -c -g
LOPT = -lSDL -o $(BIN)
CC = gcc
endif
endif
.PHONY : all debug release clean depend zip
OBJ = main.o init.o graph.o sdlscreen.o divers.o special.o boutons.o palette.o aide.o operatio.o pages.o loadsave.o readline.o moteur.o files.o op_c.o linux.o op_asm.o readini.o saveini.o shade.o clavier.o io.o
CFGOBJ = gfxcfg.o SFont.o clavier.o io.o
OBJDIR = obj/
all : $(BIN)
all : $(BIN) $(CFGBIN)
debug : $(BIN)
release : $(BIN)
release : $(BIN) $(CFGBIN)
strip $(BIN)
strip $(CFGBIN)
# A raw source archive
zip :
tar cvzf gfx2-src.tgz *.c *.h Makefile Makefile.dep gfx2.dat gfx2.ini gfx2.cfg doc/gpl-2.0.txt \
cfg_new/*.c cfg_new/*.h cfg_new/Makefile cfg_new/8pxfont.png
8pxfont.png
# A release zip archive
ziprelease:
zip grafx2-beta-svn`svnversion`.zip $(BIN) gfx2.dat gfx2.ico doc/gpl-2.0.txt SDL.dll gfx2.cfg
zip grafx2-beta-svn`svnversion`.zip $(BIN) $(CFGBIN) gfx2.dat gfx2.ico doc/gpl-2.0.txt SDL.dll gfx2.cfg
$(BIN) : $(OBJ)
$(CC) $(OBJ) -o $(BIN) $(LOPT)
$(CFGBIN) : $(CFGOBJ)
$(CC) $(CFGOBJ) -o $(CFGBIN) $(LOPT) -lSDL_image
%.o :
$(CC) $(COPT) -c $*.c -o $*.o
depend :
$(CC) -MM $(OBJ:.o=.c) > Makefile.dep
$(CC) -MM $(OBJ:.o=.c) $(CFGOBJ:.o=.c) > Makefile.dep
clean :
$(DELCOMMAND) *.o
$(DELCOMMAND) $(BIN)
$(DELCOMMAND) $(CFGBIN)
include Makefile.dep