C64_OBJECTS = Memory.o main.o CPU.o C64.o IO.o Screen.o HID.o Keyboard.o Palette.o Timer.o Tape.o Injector.o loaders/DirectoryEntry.o loaders/Loader.o loaders/PRGLoader.o loaders/T64Loader.o strlcpy.o SID.o IEC.o IECMember.o IECComputerDevice.o D1541Connector.o # TODO loaders/D64Loader.o C64_CFLAGS += -Wall $(shell pkg-config --cflags gtk+-2.0 gthread-2.0) -g -I. C64_LDFLAGS += $(shell pkg-config --libs gtk+-2.0 gthread-2.0) all: C64 C64: $(C64_OBJECTS) $(CC) -o C64 $^ $(C64_LDFLAGS) Memory.o: Memory.c Memory.h IO.h Tape.h $(CC) -c -o $@ $< $(C64_CFLAGS) Screen.o: Screen.c Screen.h Memory.h Memory.h Palette.h CPU.h $(CC) -c -o $@ $< $(C64_CFLAGS) IO.o: IO.c IO.h HID.h Keyboard.h Screen.h SID.h IEC.h IECComputerDevice.h IECMember.h $(CC) -c -o $@ $< $(C64_CFLAGS) C64.o: C64.c C64.h CPU.h Memory.h IO.h Screen.h HID.h Timer.h Tape.h SID.h IEC.h D1541Connector.h IECComputerDevice.h $(CC) -c -o $@ $< $(C64_CFLAGS) main.o: main.c C64.h Screen.h HID.h loaders/T64Loader.h loaders/PRGLoader.h loaders/Loader.h loaders/DirectoryEntry.h D1541Connector.h IEC.h $(CC) -c -o $@ $< $(C64_CFLAGS) CPU.o: CPU.c CPU.h Memory.h Injector.h $(CC) -c -o $@ $< $(C64_CFLAGS) HID.o: HID.c HID.h Joystick.h $(CC) -c -o $@ $< $(C64_CFLAGS) Keyboard.o: Keyboard.c Keyboard.h $(CC) -c -o $@ $< $(C64_CFLAGS) Palette.o: Palette.c Palette.h $(CC) -c -o $@ $< $(C64_CFLAGS) Timer.o: Timer.c Timer.h CPU.h $(CC) -c -o $@ $< $(C64_CFLAGS) Tape.o: Tape.c Tape.h C64.h CPU.h Memory.h loaders/Loader.h loaders/DirectoryEntry.h $(CC) -c -o $@ $< $(C64_CFLAGS) Injector.o: Injector.c Injector.h Tape.h IEC.h IECComputerDevice.h $(CC) -c -o $@ $< $(C64_CFLAGS) SID.o: SID.c SID.h $(CC) -c -o $@ $< $(C64_CFLAGS) loaders/D64Loader.o: loaders/D64Loader.c loaders/D64Loader.h $(CC) -c -o $@ $< $(C64_CFLAGS) loaders/DirectoryEntry.o: loaders/DirectoryEntry.c loaders/DirectoryEntry.h strlcpy.h $(CC) -c -o $@ $< $(C64_CFLAGS) loaders/Loader.o: loaders/Loader.c loaders/Loader.h $(CC) -c -o $@ $< $(C64_CFLAGS) loaders/PRGLoader.o: loaders/PRGLoader.c loaders/PRGLoader.h loaders/Loader.h loaders/DirectoryEntry.h $(CC) -c -o $@ $< $(C64_CFLAGS) loaders/T64Loader.o: loaders/T64Loader.c loaders/T64Loader.h loaders/Loader.h loaders/DirectoryEntry.h $(CC) -c -o $@ $< $(C64_CFLAGS) IECComputerDevice.o: IECComputerDevice.c IECComputerDevice.h IECMember.h Memory.h IEC.h $(CC) -c -o $@ $< $(C64_CFLAGS) IECMember.o: IECMember.c IECMember.h IEC.h $(CC) -c -o $@ $< $(C64_CFLAGS) IEC.o: IEC.c IEC.h IECComputerDevice.h IECMember.h C64.h CPU.h Memory.h $(CC) -c -o $@ $< $(C64_CFLAGS) D1541Connector.o: D1541Connector.c D1541Connector.h IEC.h IECMember.h $(CC) -c -o $@ $< $(C64_CFLAGS) strlcpy.o: strlcpy.c strlcpy.h $(CC) -c -o $@ $< $(C64_CFLAGS) clean: rm -f *.o rm -f loaders/*.o distclean: clean rm -f C64