2020-02-27 05:25:15 +00:00
|
|
|
# Makefile
|
2020-04-16 03:17:50 +00:00
|
|
|
# Currently only builds Mac Plus emulator for Windows x64 or Linux X11
|
2020-02-27 05:25:15 +00:00
|
|
|
|
2020-03-06 01:51:39 +00:00
|
|
|
CC := gcc
|
2020-03-03 17:59:42 +00:00
|
|
|
CCFLAGS := -O2 -Wall -Wmissing-prototypes -Wno-uninitialized -Wundef -Wstrict-prototypes -Icfg/ -Isrc/
|
2020-02-27 05:25:15 +00:00
|
|
|
|
2020-03-03 17:59:42 +00:00
|
|
|
.PHONY: linux windows clean
|
2020-02-27 05:25:15 +00:00
|
|
|
|
2020-03-03 17:59:42 +00:00
|
|
|
SrcFiles := \
|
2020-02-27 05:25:15 +00:00
|
|
|
src/PROGMAIN.c \
|
|
|
|
src/GLOBGLUE.c \
|
|
|
|
src/HW/M68K/M68KITAB.c \
|
|
|
|
src/HW/M68K/MINEM68K.c \
|
|
|
|
src/HW/VIA/VIAEMDEV.c \
|
|
|
|
src/HW/DISK/IWMEMDEV.c \
|
|
|
|
src/HW/SCC/SCCEMDEV.c \
|
|
|
|
src/HW/RTC/RTCEMDEV.c \
|
|
|
|
src/PATCHES/ROMEMDEV.c \
|
|
|
|
src/HW/SCSI/SCSIEMDV.c \
|
|
|
|
src/HW/DISK/SONYEMDV.c \
|
|
|
|
src/HW/SCREEN/SCRNEMDV.c \
|
|
|
|
src/HW/MOUSE/MOUSEMDV.c \
|
|
|
|
src/HW/KBRD/KBRDEMDV.c \
|
|
|
|
src/HW/SOUND/SNDEMDEV.c \
|
|
|
|
src/UTIL/DATE2SEC.c \
|
2020-04-14 03:28:15 +00:00
|
|
|
src/UI/COMOSGLU.c \
|
2020-04-16 03:17:50 +00:00
|
|
|
src/UI/CONTROLM.c \
|
|
|
|
|
|
|
|
Win32Files := \
|
|
|
|
src/UI/WIN32/OSGLUWIN.c \
|
|
|
|
src/UI/WIN32/INTLKBRD.c \
|
|
|
|
src/UI/WIN32/DBGLOG.c \
|
|
|
|
src/UI/WIN32/KEYBOARD.c \
|
2020-05-01 00:13:16 +00:00
|
|
|
src/UI/WIN32/SOUND.c \
|
|
|
|
src/UI/WIN32/TIMEDATE.c \
|
2020-02-27 05:25:15 +00:00
|
|
|
|
2020-03-03 17:59:42 +00:00
|
|
|
windows :
|
2020-02-27 05:25:15 +00:00
|
|
|
mkdir -p "bld/"
|
|
|
|
windres -i "src/UI/WIN32/main.rc" --input-format=rc -o "bld/main.res" -O coff --include-dir "src/"
|
2020-04-16 03:17:50 +00:00
|
|
|
$(CC) -o "microvmac.exe" $(SrcFiles) $(Win32Files) \
|
2020-03-03 17:59:42 +00:00
|
|
|
"bld/main.res" $(CCFLAGS) -mwindows -lwinmm -lole32 -luuid
|
|
|
|
|
|
|
|
linux :
|
|
|
|
mkdir -p "bld/"
|
2020-03-15 00:41:42 +00:00
|
|
|
$(CC) -o "microvmac.exe" $(SrcFiles) "src/UI/UNIX/OSGLUXWN.c" $(CCFLAGS) -lX11 -ldl
|
2020-02-11 03:19:26 +00:00
|
|
|
|
|
|
|
clean :
|
2020-02-27 05:25:15 +00:00
|
|
|
rm -r "bld/"
|
2020-03-15 00:41:42 +00:00
|
|
|
rm "microvmac.exe"
|