summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/Makefile78
1 files changed, 12 insertions, 66 deletions
diff --git a/uisimulator/Makefile b/uisimulator/Makefile
index c11a01a85f..fb5a0c0203 100644
--- a/uisimulator/Makefile
+++ b/uisimulator/Makefile
@@ -26,42 +26,18 @@ CC = gcc
RM = rm
CFLAGS = -g
-
-CPPFLAGS = \
- -DHAVE_CONFIG_H \
- -DGETTIMEOFDAY_TWO_ARGS \
- -DSIMULATOR \
- -DHAVE_LCD_BITMAP \
-
-LDFLAGS = \
- -lX11 \
- -lm \
- -lXt \
- -lXmu \
- -lnsl \
-
-ifeq ($(shell uname),Linux)
- INCLUDES = \
- -I/usr/X11R6/include \
- -I$(DRIVERS) \
- -I$(FIRMWAREDIR) \
-
+CPPFLAGS = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR -DHAVE_LCD_BITMAP -I$(FIRMWAREDIR)
+LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl
+UNAME := $(shell uname)
+ifeq ($(UNAME),Linux)
+ INCLUDES = -I/usr/X11R6/include -I$(DRIVERS)
LIBDIRS = -L/usr/X11R6/lib
else
INCLUDES =
LIBDIRS =
endif
-OBJS= \
- screenhack.o \
- uibasic.o \
- resources.o \
- visual.o \
- lcd.o \
- lcd-x11.o \
- button-x11.o \
- chartables.o \
- tetris.o \
+OBJS= screenhack.o uibasic.o resources.o visual.o lcd.o lcd-x11.o button-x11.o chartables.o tetris.o
SRCS = $(OBJS:%.o=%.c)
HDRS = $(OBJS:%.o=%.h)
@@ -87,39 +63,9 @@ $(TARGET): $(OBJS)
$(CC) -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS)
-lcd-x11.o: \
- lcd-x11.c \
- screenhack.h \
- config.h \
- resources.h \
- visual.h \
- lcd-x11.h \
-
-resources.o: \
- resources.c \
- utils.h \
- resources.h \
-
-screenhack.o: \
- screenhack.c \
- xmu.h \
- screenhack.h \
- config.h \
- resources.h \
- visual.h \
- version.h \
- vroot.h \
-
-uibasic.o: \
- uibasic.c \
- screenhack.h \
- config.h \
- resources.h \
- visual.h \
- version.h \
-
-visual.o: \
- visual.c \
- utils.h \
- resources.h \
- visual.h
+lcd-x11.o: lcd-x11.c screenhack.h config.h resources.h visual.h lcd-x11.h
+resources.o: resources.c utils.h resources.h
+screenhack.o: screenhack.c xmu.h screenhack.h config.h resources.h \
+ visual.h version.h vroot.h
+uibasic.o: uibasic.c screenhack.h config.h resources.h visual.h version.h
+visual.o: visual.c utils.h resources.h visual.h