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, 5 insertions, 10 deletions
diff --git a/uisimulator/win32/Makefile b/uisimulator/win32/Makefile
index 4878d85bf1..f429cad8b5 100644
--- a/uisimulator/win32/Makefile
+++ b/uisimulator/win32/Makefile
@@ -29,8 +29,6 @@ INCLUDES = -I. -I$(SIMCOMMON) -I$(OBJDIR) -I$(FIRMDIR)/export -I$(APPSDIR)
29DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \ 29DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
30$(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES) 30$(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES)
31 31
32LDFLAGS = -lgdi32 -luser32
33
34SRC := $(shell cat SOURCES | gcc -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ 32SRC := $(shell cat SOURCES | gcc -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \
35 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - ) 33 $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - )
36OBJS := $(SRC:%.c=$(OBJDIR)/%.o) 34OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
@@ -40,20 +38,15 @@ DIRS = .
40 38
41CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall -mno-cygwin 39CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall -mno-cygwin
42 40
43DLLTOOLFLAGS = --export-all
44DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin
45
46OUTFILE = $(OBJDIR)/libsim.a 41OUTFILE = $(OBJDIR)/libsim.a
47 42
48all: $(OUTFILE) 43all: $(OUTFILE)
49 @echo "MAKE in common sim" 44 @echo "MAKE in common sim"
50 $(MAKE) -C $(SIMCOMMON) 45 $(MAKE) -C $(SIMCOMMON)
51 46
52include $(TOOLSDIR)/make.inc 47$(OUTFILE): $(OBJS) $(OBJDIR)/UI256.bmp $(OBJDIR)/uisw32-res.o
53
54$(OUTFILE): $(OBJS)
55 @echo "AR+RANLIB $@" 48 @echo "AR+RANLIB $@"
56 @$(AR) ruv $@ $(OBJS) >/dev/null 2>&1 49 @$(AR) ruv $@ $(OBJS) $(OBJDIR)/uisw32-res.o >/dev/null 2>&1
57 @$(RANLIB) $@ 50 @$(RANLIB) $@
58 51
59clean: 52clean:
@@ -68,6 +61,8 @@ $(OBJDIR)/UI256.bmp: UI-$(ARCHOS).bmp
68 @cp $< $@ 61 @cp $< $@
69 62
70$(OBJDIR)/uisw32-res.o: uisw32.rc $(OBJDIR)/UI256.bmp 63$(OBJDIR)/uisw32-res.o: uisw32.rc $(OBJDIR)/UI256.bmp
71 $(WINDRES) -I$(OBJDIR) -i $< -o $@ 64 $(WINDRES) --include-dir $(OBJDIR) -i $< -o $@
65
66include $(TOOLSDIR)/make.inc
72 67
73-include $(DEPFILE) 68-include $(DEPFILE)