diff options
Diffstat (limited to 'uisimulator/common')
-rw-r--r-- | uisimulator/common/Makefile | 56 | ||||
-rw-r--r-- | uisimulator/common/SOURCES | 8 |
2 files changed, 64 insertions, 0 deletions
diff --git a/uisimulator/common/Makefile b/uisimulator/common/Makefile new file mode 100644 index 0000000000..b044440adf --- /dev/null +++ b/uisimulator/common/Makefile | |||
@@ -0,0 +1,56 @@ | |||
1 | ############################################################################ | ||
2 | # __________ __ ___. | ||
3 | # Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | # \/ \/ \/ \/ \/ | ||
8 | # $Id$ | ||
9 | # | ||
10 | # Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se> | ||
11 | # | ||
12 | # All files in this archive are subject to the GNU General Public License. | ||
13 | # See the file COPYING in the source tree root for full license agreement. | ||
14 | # | ||
15 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
16 | # KIND, either express or implied. | ||
17 | # | ||
18 | ############################################################################ | ||
19 | |||
20 | DEPFILE = $(OBJDIR)/dep-commonsim | ||
21 | |||
22 | RM = rm -f | ||
23 | DEBUG = -g | ||
24 | |||
25 | # Use this for simulator-only files | ||
26 | INCLUDES = -I. -I$(OBJDIR) -I$(FIRMDIR)/export -I$(APPSDIR) | ||
27 | |||
28 | SRC := $(shell cat SOURCES | gcc -DMEMORYSIZE=$(MEMORYSIZE) $(INCLUDES) \ | ||
29 | $(TARGET) $(DEFINES) $(EXTRA_DEFINES) -E -P -include "config.h" - ) | ||
30 | OBJS := $(SRC:%.c=$(OBJDIR)/%.o) | ||
31 | |||
32 | DEFINES := -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \ | ||
33 | $(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES) | ||
34 | |||
35 | SOURCES = $(SRC) | ||
36 | |||
37 | DIRS = . | ||
38 | |||
39 | CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(GCCOPTS) | ||
40 | |||
41 | OUTFILE = $(OBJDIR)/libsim.a | ||
42 | |||
43 | all: $(OUTFILE) | ||
44 | |||
45 | include $(TOOLSDIR)/make.inc | ||
46 | |||
47 | clean: | ||
48 | @echo "cleaning commonsim" | ||
49 | @$(RM) $(OBJS) *~ core $(DEPFILE) | ||
50 | |||
51 | $(OUTFILE): $(OBJS) | ||
52 | @echo "AR+RANLIB $@" | ||
53 | @$(AR) ruv $@ $(OBJS) >/dev/null 2>&1 | ||
54 | @$(RANLIB) $@ | ||
55 | |||
56 | -include $(DEPFILE) | ||
diff --git a/uisimulator/common/SOURCES b/uisimulator/common/SOURCES new file mode 100644 index 0000000000..d12a78db53 --- /dev/null +++ b/uisimulator/common/SOURCES | |||
@@ -0,0 +1,8 @@ | |||
1 | fmradio.c | ||
2 | font-player.c | ||
3 | io.c | ||
4 | lcd-common.c | ||
5 | lcd-playersim.c | ||
6 | mpegplay.c | ||
7 | sim_icons.c | ||
8 | stubs.c | ||