-Easily change the number of video modes in the list (i'd like to use my 1440x900 screen at full resoluution !) -Maybe add a resizeable window mode, but that would require more work, so i'd like to keep that for 2.0 . In the meantime, i've made the list symetric, ie, mode are loaded from the cfg file and when the list is processed, each mode is copied to a fullscreen equivalent. Note this way of doing things will prevent the config file to save the selected video mode properly, so the program will switch to the default 800x600 windowed. When you load an image, Grafx2 will switch back to windowed mode when selecting the appropriate resolution for that image. The NB_MODES_VIDEO constant is also only the HALF of the actually available video modes git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@183 416bcca6-2ee7-4201-b75f-2eb2f807beb1
48 lines
1010 B
Makefile
48 lines
1010 B
Makefile
# Windows specific
|
|
ifdef COMSPEC
|
|
DELCOMMAND = del
|
|
BIN = grafx2.exe
|
|
COPT = -Wall -O -g -ggdb -Dmain=SDL_main
|
|
LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi
|
|
else
|
|
# Linux specific
|
|
DELCOMMAND = rm -rf
|
|
BIN = grafx2
|
|
COPT = -Wall -c -g
|
|
LOPT = -lSDL -o $(BIN)
|
|
endif
|
|
|
|
.PHONY : all debug release clean depend zip
|
|
|
|
CC = gcc
|
|
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
|
|
|
|
OBJDIR = obj/
|
|
|
|
all : $(BIN)
|
|
|
|
debug : $(BIN)
|
|
|
|
release : $(BIN)
|
|
strip $(BIN)
|
|
|
|
# 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
|
|
|
|
$(BIN) : $(OBJ)
|
|
$(CC) $(OBJ) -o $(BIN) $(LOPT)
|
|
|
|
%.o :
|
|
$(CC) $(COPT) -c $*.c -o $*.o
|
|
|
|
depend :
|
|
$(CC) -MM $(OBJ:.o=.c) > Makefile.dep
|
|
|
|
clean :
|
|
$(DELCOMMAND) *.o
|
|
$(DELCOMMAND) $(BIN)
|
|
|
|
include Makefile.dep
|