diff options
Diffstat (limited to 'uisimulator/Makefile')
-rw-r--r-- | uisimulator/Makefile | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/uisimulator/Makefile b/uisimulator/Makefile new file mode 100644 index 0000000000..eb478a6d6b --- /dev/null +++ b/uisimulator/Makefile | |||
@@ -0,0 +1,40 @@ | |||
1 | ############################################################################## | ||
2 | # Rockbox UI simulator | ||
3 | ############################################################################# | ||
4 | |||
5 | TARGET = rockboxui | ||
6 | |||
7 | CC = gcc | ||
8 | RM = rm | ||
9 | |||
10 | CFLAGS = -g -O2 | ||
11 | CPPFLAGS = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS | ||
12 | LDFLAGS = -lX11 -lm -lXt -lXmu -lsocket -lnsl | ||
13 | |||
14 | DEPEND = .depends | ||
15 | |||
16 | OBJS= alpha.o hsv.o screenhack.o yarandom.o uibasic.o resources.o visual.o\ | ||
17 | usleep.o | ||
18 | |||
19 | SRCS = $(OBJS:%.o=%.c) | ||
20 | HDRS = $(OBJS:%.o=%.h) | ||
21 | |||
22 | all: $(DEPEND) $(TARGET) | ||
23 | |||
24 | clean: | ||
25 | $(RM) -f $(OBJS) *~ core $(TARGET) $(CLIENTS) $(DEPEND) | ||
26 | |||
27 | distclean: clean | ||
28 | $(RM) config.cache | ||
29 | |||
30 | .c.o: | ||
31 | $(CC) $(CPPFLAGS) $(CCFLAGS) -c $< | ||
32 | |||
33 | $(DEPEND): | ||
34 | $(CC) -MM $(CFLAGS) $(SRCS) > $(DEPEND) | ||
35 | |||
36 | $(TARGET): $(OBJS) | ||
37 | $(CC) -o $(TARGET) $(LDFLAGS) $(OBJS) | ||
38 | |||
39 | # Dependencies | ||
40 | include $(DEPEND) | ||