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.
33 lines
833 B
Makefile
33 lines
833 B
Makefile
INCLUDE=-I./include -I/Library/Frameworks/SDL.framework/Versions/A/Headers
|
|
LIBS=-lm -framework SDL -framework Cocoa
|
|
|
|
CC=gcc -s -O2 -fomit-frame-pointer
|
|
|
|
COMMON_HEADERS=include/emuversion.h include/debug.h include/video/colors.h
|
|
ALL=emu65el02
|
|
|
|
all: $(ALL)
|
|
|
|
release: $(ALL)
|
|
|
|
emu65el02: emu65el02.o src/SDLMain.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 $@
|
|
|
|
%.o: %.m $(COMMON_HEADERS)
|
|
|
|
.m.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 {} \;
|