2002-03-25 14:42:44 +00:00
|
|
|
############################################################################
|
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
2002-03-25 14:43:36 +00:00
|
|
|
# $Id$
|
2002-03-25 14:42:44 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se>
|
|
|
|
#
|
|
|
|
# All files in this archive are subject to the GNU General Public License.
|
|
|
|
# See the file COPYING in the source tree root for full license agreement.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
############################################################################
|
2002-03-25 14:21:30 +00:00
|
|
|
|
|
|
|
TARGET = rockboxui
|
|
|
|
|
2002-04-11 12:41:27 +00:00
|
|
|
FIRMWAREDIR=../firmware
|
2002-04-24 08:09:39 +00:00
|
|
|
DRIVERS=$(FIRMWAREDIR)/drivers
|
2002-04-11 12:41:27 +00:00
|
|
|
|
2002-03-25 14:21:30 +00:00
|
|
|
CC = gcc
|
|
|
|
RM = rm
|
|
|
|
|
2002-03-26 15:40:53 +00:00
|
|
|
CFLAGS = -g
|
2002-04-24 09:14:16 +00:00
|
|
|
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)
|
2002-04-19 14:12:31 +00:00
|
|
|
LIBDIRS = -L/usr/X11R6/lib
|
|
|
|
else
|
|
|
|
INCLUDES =
|
|
|
|
LIBDIRS =
|
|
|
|
endif
|
2002-03-25 14:21:30 +00:00
|
|
|
|
2002-04-24 09:14:16 +00:00
|
|
|
OBJS= screenhack.o uibasic.o resources.o visual.o lcd.o lcd-x11.o button-x11.o chartables.o tetris.o
|
2002-03-25 14:21:30 +00:00
|
|
|
|
|
|
|
SRCS = $(OBJS:%.o=%.c)
|
|
|
|
HDRS = $(OBJS:%.o=%.h)
|
|
|
|
|
2002-04-11 12:41:27 +00:00
|
|
|
all: $(TARGET)
|
2002-03-25 14:21:30 +00:00
|
|
|
|
|
|
|
clean:
|
2002-04-11 12:41:27 +00:00
|
|
|
$(RM) -f $(OBJS) *~ core $(TARGET) $(CLIENTS)
|
2002-03-25 14:21:30 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) config.cache
|
|
|
|
|
2002-04-24 08:09:39 +00:00
|
|
|
lcd.o: $(DRIVERS)/lcd.c
|
2002-04-11 12:41:27 +00:00
|
|
|
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
chartables.o: $(FIRMWAREDIR)/chartables.c
|
|
|
|
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-03-25 14:21:30 +00:00
|
|
|
.c.o:
|
2002-03-28 07:52:15 +00:00
|
|
|
$(CC) $(CPPFLAGS) $(INCLUDES) $(CFLAGS) -c $<
|
2002-03-25 14:21:30 +00:00
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
2002-03-28 07:52:15 +00:00
|
|
|
$(CC) -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS)
|
2002-03-25 14:21:30 +00:00
|
|
|
|
2002-04-11 12:41:27 +00:00
|
|
|
|
2002-04-24 09:14:16 +00:00
|
|
|
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
|