You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
702 B
Makefile
28 lines
702 B
Makefile
INCLUDE=-I./include -I/usr/include/SDL
|
|
LIBS=-lm -lSDL
|
|
|
|
CC=gcc-4.6 -s -O2 -fomit-frame-pointer -Wall
|
|
|
|
COMMON_HEADERS=include/emuversion.h include/debug.h include/video/colors.h
|
|
ALL=emu65el02
|
|
|
|
all: $(ALL)
|
|
|
|
release: $(ALL)
|
|
|
|
emu65el02: emu65el02.o src/emubase.o src/memory/memory.o src/video/gbuffer.o src/debug.o src/cpu/65el02.o src/display/display.o src/drive/drive.o src/options.o src/monitor.o src/calc.o src/screen.o
|
|
$(CC) $^ -o $@ $(LIBS)
|
|
|
|
%.o: %.c $(COMMON_HEADERS)
|
|
|
|
.c.o:
|
|
$(CC) $(INCLUDE) -c $< -o $@
|
|
|
|
clean:
|
|
rm -f *~ *.o core *.stackdump src/*.o
|
|
/bin/find ./src -iname '*.o' -exec rm {} \;
|
|
|
|
distclean:
|
|
rm -f *~ *.o core *.stackdump emu65el02.exe
|
|
/bin/find ./src -iname '*.o' -exec rm {} \;
|