2002-03-25 14:42:44 +00:00
|
|
|
############################################################################
|
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $id:$
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
RM = rm
|
|
|
|
|
|
|
|
CFLAGS = -g -O2
|
|
|
|
CPPFLAGS = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS
|
|
|
|
LDFLAGS = -lX11 -lm -lXt -lXmu -lsocket -lnsl
|
|
|
|
|
|
|
|
DEPEND = .depends
|
|
|
|
|
|
|
|
OBJS= alpha.o hsv.o screenhack.o yarandom.o uibasic.o resources.o visual.o\
|
|
|
|
usleep.o
|
|
|
|
|
|
|
|
SRCS = $(OBJS:%.o=%.c)
|
|
|
|
HDRS = $(OBJS:%.o=%.h)
|
|
|
|
|
|
|
|
all: $(DEPEND) $(TARGET)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) -f $(OBJS) *~ core $(TARGET) $(CLIENTS) $(DEPEND)
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) config.cache
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(CC) $(CPPFLAGS) $(CCFLAGS) -c $<
|
|
|
|
|
|
|
|
$(DEPEND):
|
|
|
|
$(CC) -MM $(CFLAGS) $(SRCS) > $(DEPEND)
|
|
|
|
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
$(CC) -o $(TARGET) $(LDFLAGS) $(OBJS)
|
|
|
|
|
|
|
|
# Dependencies
|
|
|
|
include $(DEPEND)
|