summaryrefslogtreecommitdiff
path: root/uisimulator/win32/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/win32/Makefile')
-rw-r--r--uisimulator/win32/Makefile15
1 files changed, 12 insertions, 3 deletions
diff --git a/uisimulator/win32/Makefile b/uisimulator/win32/Makefile
index 59949b951c..f9c363e17b 100644
--- a/uisimulator/win32/Makefile
+++ b/uisimulator/win32/Makefile
@@ -27,6 +27,8 @@ ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
27 MACHINEDIR = $(RECDIR) 27 MACHINEDIR = $(RECDIR)
28 # not very nice to set RTC like this, but... 28 # not very nice to set RTC like this, but...
29 RTC += -DHAVE_RTC 29 RTC += -DHAVE_RTC
30 # not very nice to set RADIO like this, but...
31 RADIO += -DHAVE_FMRADIO
30else 32else
31 MACHINEDIR = $(PLAYDIR) 33 MACHINEDIR = $(PLAYDIR)
32endif 34endif
@@ -53,7 +55,8 @@ LANGUAGE = english
53TARGET = $(OBJDIR)/uisw32.exe 55TARGET = $(OBJDIR)/uisw32.exe
54 56
55DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \ 57DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
56$(KEYPAD) $(DISPLAY) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) $(RTC) 58$(KEYPAD) $(DISPLAY) -DAPPSVERSION=\"$(VERSION)\" $(EXTRA_DEFINES) \
59$(RTC) $(RADIO)
57 60
58LDFLAGS = -lgdi32 -luser32 61LDFLAGS = -lgdi32 -luser32
59 62
@@ -110,12 +113,12 @@ APPS = main.c tree.c menu.c credits.c main_menu.c icons.c language.c \
110MENUS = settings_menu.c sound_menu.c playlist_menu.c 113MENUS = settings_menu.c sound_menu.c playlist_menu.c
111 114
112ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP) 115ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
113 APPS += bmp.c widgets.c 116 APPS += bmp.c widgets.c radio.c
114endif 117endif
115 118
116SRCS = button.c lcd-win32.c panic-win32.c thread-win32.c \ 119SRCS = button.c lcd-win32.c panic-win32.c thread-win32.c \
117 debug-win32.c kernel.c string-win32.c uisw32.c stubs.c \ 120 debug-win32.c kernel.c string-win32.c uisw32.c stubs.c \
118 $(APPS) $(MENUS) $(FIRMSRCS) $(COMMONSRCS) sim_icons.c 121 $(APPS) $(MENUS) $(FIRMSRCS) $(COMMONSRCS) sim_icons.c fmradio.c
119 122
120OBJS := $(OBJDIR)/lang.o $(SRCS:%.c=$(OBJDIR)/%.o) $(OBJDIR)/uisw32-res.o 123OBJS := $(OBJDIR)/lang.o $(SRCS:%.c=$(OBJDIR)/%.o) $(OBJDIR)/uisw32-res.o
121 124
@@ -315,9 +318,15 @@ $(OBJDIR)/io.o: $(SIMCOMMON)/io.c
315$(OBJDIR)/lcd-playersim.o: $(SIMCOMMON)/lcd-playersim.c 318$(OBJDIR)/lcd-playersim.o: $(SIMCOMMON)/lcd-playersim.c
316 $(CC) $(CFLAGS) -c $< -o $@ 319 $(CC) $(CFLAGS) -c $< -o $@
317 320
321$(OBJDIR)/fmradio.o: $(SIMCOMMON)/fmradio.c
322 $(CC) $(CFLAGS) -c $< -o $@
323
318$(OBJDIR)/lcd-player.o: $(DRIVERS)/lcd-player.c 324$(OBJDIR)/lcd-player.o: $(DRIVERS)/lcd-player.c
319 $(CC) $(CFLAGS) -c $< -o $@ 325 $(CC) $(CFLAGS) -c $< -o $@
320 326
327$(OBJDIR)/radio.o: $(RECDIR)/radio.c
328 $(CC) $(APPCFLAGS) -c $< -o $@
329
321# these ones are simulator-specific 330# these ones are simulator-specific
322 331
323$(OBJDIR)/%.o: %.c 332$(OBJDIR)/%.o: %.c