aboutsummaryrefslogtreecommitdiff
path: root/win32/x86
diff options
context:
space:
mode:
Diffstat (limited to 'win32/x86')
-rw-r--r--win32/x86/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/win32/x86/Makefile b/win32/x86/Makefile
index e273569..e5aad93 100644
--- a/win32/x86/Makefile
+++ b/win32/x86/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)
@@ -36,8 +38,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)