summaryrefslogtreecommitdiff
path: root/uisimulator/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/Makefile')
-rw-r--r--uisimulator/Makefile40
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
5TARGET = rockboxui
6
7CC = gcc
8RM = rm
9
10CFLAGS = -g -O2
11CPPFLAGS = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS
12LDFLAGS = -lX11 -lm -lXt -lXmu -lsocket -lnsl
13
14DEPEND = .depends
15
16OBJS= alpha.o hsv.o screenhack.o yarandom.o uibasic.o resources.o visual.o\
17 usleep.o
18
19SRCS = $(OBJS:%.o=%.c)
20HDRS = $(OBJS:%.o=%.h)
21
22all: $(DEPEND) $(TARGET)
23
24clean:
25 $(RM) -f $(OBJS) *~ core $(TARGET) $(CLIENTS) $(DEPEND)
26
27distclean: 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
40include $(DEPEND)