diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-01-07 13:39:17 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-01-07 13:39:17 +0900 |
commit | 09ea1fe272aca6ebb6840f02765acd44ac3ecebc (patch) | |
tree | 9221a90ae3b6d35394554d5ecae1a1c14cda4ca6 /win32/amd64 | |
parent | e8e394a10937bec18106d2f8c1c0a045c62f458f (diff) |
win32
Diffstat (limited to 'win32/amd64')
-rw-r--r-- | win32/amd64/Makefile | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/win32/amd64/Makefile b/win32/amd64/Makefile new file mode 100644 index 0000000..5c959c5 --- /dev/null +++ b/win32/amd64/Makefile @@ -0,0 +1,42 @@ +vpath %.c ../ +vpath %.c ../../fmdriver +vpath %.c ../../libopna +vpath %.c ../../fmdsp +vpath %.rc .. +TARGET=fmplayer.exe +FMDRIVER_OBJS=fmdriver_fmp.o \ + ppz8.o +LIBOPNA_OBJS=opna.o \ + opnatimer.o \ + opnafm.o \ + opnassg.o \ + opnadrum.o \ + opnaadpcm.o +FMDSP_OBJS=fmdsp.o +OBJS=main.o dsoundout.o soundout.o waveout.o uc.o lnf.o \ + $(FMDRIVER_OBJS) \ + $(LIBOPNA_OBJS) \ + $(FMDSP_OBJS) +ARCH=x86_64 +PREFIX=$(ARCH)-w64-mingw32- +CC=$(PREFIX)gcc +WINDRES=$(PREFIX)windres +STRIP=$(PREFIX)strip +CFLAGS=-std=c99 -Os -Wall -Wextra -pedantic -I../.. \ + -DUNICODE -D_UNICODE \ + -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 +LIBS=-nostdlib -s -Wl,-eentry \ + -Wl,--subsystem,windows \ + -lgcc -lntdll \ + -luser32 -lkernel32 -lole32 -ldxguid -luuid -lcomdlg32 \ + -lgdi32 -lshlwapi -lwinmm -lshell32 + +$(TARGET): $(OBJS) + $(CC) -o $@ $(OBJS) $(LIBS) + $(STRIP) $@ + +%.o: %.rc + $(WINDRES) -o $@ -i $< + +clean: + rm -f $(TARGET) $(OBJS) |