diff options
Diffstat (limited to 'uisimulator/win32/Makefile')
-rw-r--r-- | uisimulator/win32/Makefile | 15 |
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) | |||
29 | DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \ | 29 | DEFINES = -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 | ||
32 | LDFLAGS = -lgdi32 -luser32 | ||
33 | |||
34 | SRC := $(shell cat SOURCES | gcc -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ | 32 | SRC := $(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" - ) |
36 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) | 34 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) |
@@ -40,20 +38,15 @@ DIRS = . | |||
40 | 38 | ||
41 | CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall -mno-cygwin | 39 | CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall -mno-cygwin |
42 | 40 | ||
43 | DLLTOOLFLAGS = --export-all | ||
44 | DLLWRAPFLAGS = -s --entry _DllMain@12 --target=i386-mingw32 -mno-cygwin | ||
45 | |||
46 | OUTFILE = $(OBJDIR)/libsim.a | 41 | OUTFILE = $(OBJDIR)/libsim.a |
47 | 42 | ||
48 | all: $(OUTFILE) | 43 | all: $(OUTFILE) |
49 | @echo "MAKE in common sim" | 44 | @echo "MAKE in common sim" |
50 | $(MAKE) -C $(SIMCOMMON) | 45 | $(MAKE) -C $(SIMCOMMON) |
51 | 46 | ||
52 | include $(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 | ||
59 | clean: | 52 | clean: |
@@ -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 | |||
66 | include $(TOOLSDIR)/make.inc | ||
72 | 67 | ||
73 | -include $(DEPFILE) | 68 | -include $(DEPFILE) |