aboutsummaryrefslogtreecommitdiff
path: root/win32/amd64/Makefile
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-01-18 23:37:07 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-01-18 23:37:07 +0900
commite8fd09abf68b944b05554c82adb577514cad5ca5 (patch)
treef8882715e86534cec2dc20154fd24c6bef3c668b /win32/amd64/Makefile
parent09ea1fe272aca6ebb6840f02765acd44ac3ecebc (diff)
improve FMDSP and enable title display on win32
Diffstat (limited to 'win32/amd64/Makefile')
-rw-r--r--win32/amd64/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/win32/amd64/Makefile b/win32/amd64/Makefile
index 5c959c5..2a43c59 100644
--- a/win32/amd64/Makefile
+++ b/win32/amd64/Makefile
@@ -4,6 +4,8 @@ vpath %.c ../../libopna
vpath %.c ../../fmdsp
vpath %.rc ..
TARGET=fmplayer.exe
+ICON=../fmplayer.ico
+ICONFILES=../fmplayer.png ../fmplayer32.png
FMDRIVER_OBJS=fmdriver_fmp.o \
ppz8.o
LIBOPNA_OBJS=opna.o \
@@ -12,8 +14,8 @@ LIBOPNA_OBJS=opna.o \
opnassg.o \
opnadrum.o \
opnaadpcm.o
-FMDSP_OBJS=fmdsp.o
-OBJS=main.o dsoundout.o soundout.o waveout.o uc.o lnf.o \
+FMDSP_OBJS=fmdsp.o font_rom.o
+OBJS=main.o dsoundout.o soundout.o waveout.o uc.o lnf.o winfont.o \
$(FMDRIVER_OBJS) \
$(LIBOPNA_OBJS) \
$(FMDSP_OBJS)
@@ -35,8 +37,11 @@ $(TARGET): $(OBJS)
$(CC) -o $@ $(OBJS) $(LIBS)
$(STRIP) $@
-%.o: %.rc
+%.o: %.rc $(ICON)
$(WINDRES) -o $@ -i $<
+$(ICON): $(ICONFILES)
+ convert $(ICONFILES) -colors 256 $@
+
clean:
rm -f $(TARGET) $(OBJS)