grafX2/Makefile
Yves Rizoud acfe5836ce Grafx2 can now read and convert gfx2.cfg from the original DOS (96.5%) format.
Older .cfg files in svn were saved incorrectly: the wrong size of chunk #5
(0x0101 instead of 0xE1) made it impossible to re-read the file in gfxcfg.

gfxcfg can read and save gfx2.cfg. Upward compatibility is provided:
- If new chunk types are added to the format, it only needs a re-compile. Older
files can be read and saved.
- If new keyboard shortcuts are added (134 currently), the older files can be
read and the default shortcut will be used for missing keys.

Fixed many endianness cases, hopefully
Fixed LBM loading : bug in ASM->C conversion of Couleur_ILBM_line()
Broke PCX loading : argh!


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@176 416bcca6-2ee7-4201-b75f-2eb2f807beb1
2008-09-29 23:15:08 +00:00

48 lines
983 B
Makefile

# Windows specific
ifdef COMSPEC
DELCOMMAND = del
BIN = grafx2.exe
COPT = -Wall -O -g -ggdb -Dmain=SDL_main $(SCREEN)
LOPT = -mwindows -lmingw32 -lSDLmain -lSDL -lshlwapi
else
# Linux specific
DELCOMMAND = rm -rf
BIN = grafx2
COPT = -Wall -c -g $(SCREEN)
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
SCREEN = -D WINDOWED
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
$(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