summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/Makefile')
-rw-r--r--uisimulator/sdl/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/uisimulator/sdl/Makefile b/uisimulator/sdl/Makefile
index 989ac65223..5c5693e98c 100644
--- a/uisimulator/sdl/Makefile
+++ b/uisimulator/sdl/Makefile
@@ -40,7 +40,7 @@ SOURCES = $(SRC)
DIRS = .
-CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(GCCOPTS)
+CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(GCCOPTS) -W -Wall
OUTFILE = $(BUILDDIR)/libsim.a
@@ -48,13 +48,19 @@ all: $(OUTFILE)
include $(TOOLSDIR)/make.inc
+$(OUTFILE): $(OBJS) $(BUILDDIR)/UI256.bmp
+ @echo "AR $@"
+ @$(AR) ruv $@ $(OBJS) >/dev/null 2>&1
+
clean:
@echo "cleaning sim"
- @$(RM) $(OBJS) *~ core $(OUTFILE) $(DEPFILE)
+ @$(RM) $(OBJS) *~ core $(OUTFILE) $(DEPFILE) \
+ $(BUILDDIR)/UI256.bmp $(DEPFILE)
@$(MAKE) -C $(SIMCOMMON) clean
-$(OUTFILE): $(OBJS)
- @echo "AR $@"
- @$(AR) ruv $@ $(OBJS) >/dev/null 2>&1
+################## Specific dependencies ##################
+$(BUILDDIR)/UI256.bmp: UI-$(ARCHOS).bmp
+ @echo UI
+ @cp $< $@
-include $(DEPFILE)