Genesis-Plus-GX/source/unused/dos/Makefile

130 lines
2.6 KiB
Makefile
Raw Normal View History

2008-08-21 22:34:00 +02:00
# Makefile for genplus DOS
#
2008-08-07 14:43:17 +02:00
# (c) 1999, 2000, 2001, 2002, 2003 Charles MacDonald
2008-08-21 22:34:00 +02:00
# modified by Eke-Eke <eke_eke31@yahoo.fr>
#
# Defines :
2008-08-07 14:43:17 +02:00
# -DLSB_FIRST - Leave undefined for big-endian processors.
# -DDOS - Enable DOS/x86 specific code.
# -DDEBUG - Enable debugging code
# -DX86_ASM - Enable inline x86 assembly code in Z80 emulator
2008-08-21 22:34:00 +02:00
CC = gcc
2008-08-07 14:43:17 +02:00
AS = nasm -f coff
LDFLAGS =
FLAGS = -I. -I.. -I../z80 -I../m68k -I../dos -I../sound -I../sound/SRC -I../cart_hw -I../cart_hw/svp \
-Wall -g \
-O6 -march=i686 -fomit-frame-pointer \
-DLSB_FIRST -DX86_ASM -DDOS
2008-08-07 14:43:17 +02:00
2008-08-21 22:34:00 +02:00
LIBS = -lalleg -laudio -lz -lm
OBJ = obj/z80.o
2008-08-07 14:43:17 +02:00
OBJ += obj/m68kcpu.o \
2008-08-21 22:34:00 +02:00
obj/m68kops.o
OBJ += obj/genesis.o \
2008-08-07 14:43:17 +02:00
obj/vdp.o \
obj/render.o \
obj/system.o \
2008-08-21 22:34:00 +02:00
obj/gen_io.o \
obj/gen_input.o \
2008-08-07 14:43:17 +02:00
obj/mem68k.o \
obj/memz80.o \
obj/membnk.o \
obj/state.o
OBJ += obj/sound.o \
2008-08-07 14:43:17 +02:00
obj/fm.o \
obj/sn76489.o \
obj/ym2612.o
2008-08-21 22:34:00 +02:00
OBJ += obj/samplerate.o \
obj/src_linear.o \
obj/src_sinc.o \
obj/src_zoh.o \
OBJ += obj/sram.o \
2008-08-07 14:43:17 +02:00
obj/eeprom.o \
obj/svp.o \
obj/ssp16.o \
obj/cart_hw.o
OBJ += obj/dos.o \
obj/sealintf.o \
obj/config.o \
obj/error.o \
obj/unzip.o \
obj/fileio.o \
obj/loadrom.o
EXE = ../gen.exe
2008-08-07 14:43:17 +02:00
all : $(EXE)
$(EXE) : $(OBJ)
$(CC) -o $(EXE) $(OBJ) $(LIBS) $(LDFLAGS)
2008-08-21 22:34:00 +02:00
obj/%.o : ../%.c ../%.h
2008-08-07 14:43:17 +02:00
$(CC) -c $< -o $@ $(FLAGS)
2008-08-21 22:34:00 +02:00
obj/%.o : ../asm/%.s
2008-08-07 14:43:17 +02:00
$(AS) $< -o $@
2008-08-21 22:34:00 +02:00
obj/%.o : ../sound/%.c ../sound/%.h
2008-08-07 14:43:17 +02:00
$(CC) -c $< -o $@ $(FLAGS)
2008-08-21 22:34:00 +02:00
obj/%.o : ../sound/%.c
$(CC) -c $< -o $@ $(FLAGS)
obj/%.o : ../sound/SRC/%.c ../sound/SRC/%.h
$(CC) -c $< -o $@ $(FLAGS)
obj/%.o : ../sound/SRC/%.c
$(CC) -c $< -o $@ $(FLAGS)
obj/%.o : ../cart_hw/%.c ../cart_hw/%.h
2008-08-07 14:43:17 +02:00
$(CC) -c $< -o $@ $(FLAGS)
2008-08-21 22:34:00 +02:00
obj/%.o : ../cart_hw/svp/%.c
2008-08-07 14:43:17 +02:00
$(CC) -c $< -o $@ $(FLAGS)
2008-08-21 22:34:00 +02:00
obj/%.o : ../cart_hw/svp/%.c ../cart_hw/svp/%.h
2008-08-07 14:43:17 +02:00
$(CC) -c $< -o $@ $(FLAGS)
obj/%.o : ../z80/%.c ../z80/%.h
2008-08-07 14:43:17 +02:00
$(CC) -c $< -o $@ $(FLAGS)
2008-08-21 22:34:00 +02:00
obj/%.o : ../m68k/%.c ../m68k/%.h
2008-08-07 14:43:17 +02:00
$(CC) -c $< -o $@ $(FLAGS)
2008-08-21 22:34:00 +02:00
obj/%.o : ./%.c ./%.h
2008-08-07 14:43:17 +02:00
$(CC) -c $< -o $@ $(FLAGS)
pack :
strip $(EXE)
upx -1 $(EXE)
clean :
rm -f obj/*.o
rm -f *.bak
rm -f *.exe
rm -f *.log
rm -f *.wav
rm -f *.zip
cleancpu :
rm -f obj/z80.oa
makedir :
mkdir obj
archive:
pk -dir -add -max \
-excl=rom -excl=test \
mdsrc.zip *.*
#
# end of makefile
#