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
|
|
|
|
2002-05-17 12:23:11 +00:00
|
|
|
APPDIR = ../../apps
|
2002-05-17 14:39:42 +00:00
|
|
|
RECDIR = $(APPDIR)/recorder
|
2002-09-03 08:30:15 +00:00
|
|
|
PLAYDIR = $(APPDIR)/player
|
|
|
|
|
|
|
|
ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
|
|
|
|
MACHINEDIR = $(RECDIR)
|
2002-10-11 20:17:08 +00:00
|
|
|
# not very nice to set RTC like this, but...
|
|
|
|
RTC += -DHAVE_RTC
|
2002-09-03 08:30:15 +00:00
|
|
|
else
|
|
|
|
MACHINEDIR = $(PLAYDIR)
|
|
|
|
endif
|
2002-05-17 12:23:11 +00:00
|
|
|
|
|
|
|
PREVAPPDIR= ..
|
2002-04-28 00:00:02 +00:00
|
|
|
FIRMWAREDIR = ../../firmware
|
2003-04-25 12:36:14 +00:00
|
|
|
COMMON = $(FIRMWAREDIR)/common
|
2003-12-15 10:25:51 +00:00
|
|
|
SIMCOMMON = ../common
|
2002-04-25 08:06:38 +00:00
|
|
|
DRIVERS = $(FIRMWAREDIR)/drivers
|
2002-08-11 09:17:47 +00:00
|
|
|
TOOLSDIR = ../../tools
|
2002-10-15 07:51:25 +00:00
|
|
|
DOCSDIR = ../../docs
|
2002-04-11 12:41:27 +00:00
|
|
|
|
2002-03-25 14:21:30 +00:00
|
|
|
CC = gcc
|
2002-04-25 08:06:38 +00:00
|
|
|
RM = rm -f
|
|
|
|
DEBUG = -g
|
2002-05-04 12:26:21 +00:00
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
# where to put all output files
|
|
|
|
OBJDIR = .
|
|
|
|
|
|
|
|
TARGET = $(OBJDIR)/rockboxui
|
2002-09-18 14:08:05 +00:00
|
|
|
LANGUAGE = english
|
2002-05-31 07:23:07 +00:00
|
|
|
|
2002-05-04 12:26:21 +00:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
|
2002-10-11 20:17:08 +00:00
|
|
|
$(KEYPAD) $(DISPLAY) $(EXTRA_DEFINES) $(RTC)
|
2002-05-04 12:26:21 +00:00
|
|
|
|
2002-06-17 13:33:47 +00:00
|
|
|
# Use this for simulator-only files
|
2003-02-07 09:42:57 +00:00
|
|
|
INCLUDES = -I. -I$(DRIVERS) -I$(FIRMWAREDIR)/export -I$(APPDIR) \
|
2003-12-15 10:25:51 +00:00
|
|
|
-I$(MACHINEDIR) -I$(SIMCOMMON) -I$(OBJDIR)
|
2003-02-07 09:42:57 +00:00
|
|
|
SRCDIRS = . $(DRIVERS) $(FIRMWAREDIR)/export $(APPDIR) $(MACHINEDIR)
|
2002-04-25 08:06:38 +00:00
|
|
|
|
2002-06-17 13:33:47 +00:00
|
|
|
# The true Rockbox Applications should use this include path:
|
2003-02-07 09:42:57 +00:00
|
|
|
APPINCLUDES = $(INCLUDES)
|
2002-06-17 13:33:47 +00:00
|
|
|
|
2002-06-10 10:17:54 +00:00
|
|
|
LIBS = -lpthread
|
2002-05-12 11:34:08 +00:00
|
|
|
|
2003-03-05 22:45:14 +00:00
|
|
|
UNAME := $(shell uname|sed -e "s/CYGWIN.*/CYGWIN/")
|
2002-04-24 09:14:16 +00:00
|
|
|
ifeq ($(UNAME),Linux)
|
2003-06-29 17:06:16 +00:00
|
|
|
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl -ldl
|
2002-04-30 07:02:37 +00:00
|
|
|
INCLUDES += -I/usr/X11R6/include
|
2002-04-19 14:12:31 +00:00
|
|
|
LIBDIRS = -L/usr/X11R6/lib
|
2003-07-04 08:30:01 +00:00
|
|
|
DEFINES += -DHAVE_OSS
|
2002-04-19 14:12:31 +00:00
|
|
|
else
|
2003-03-05 22:45:14 +00:00
|
|
|
ifeq ($(UNAME),CYGWIN)
|
2003-06-30 03:43:07 +00:00
|
|
|
LDFLAGS = -lSM -lICE -lXt -lX11 -lXmu -lSM -lICE -lX11
|
2003-03-05 22:45:14 +00:00
|
|
|
INCLUDES += -I/usr/X11R6/include
|
|
|
|
LIBDIRS = -L/usr/X11R6/lib
|
2004-01-10 19:29:00 +00:00
|
|
|
DEFINES += -DHAVE_OSS -D_SSIZE_T_
|
2003-07-04 08:30:01 +00:00
|
|
|
else
|
|
|
|
ifeq ($(UNAME),FreeBSD)
|
|
|
|
LIBS = -pthread
|
|
|
|
LDFLAGS = -lX11 -lm -lXt -lXmu
|
|
|
|
INCLUDES += -I/usr/X11R6/include
|
|
|
|
LIBDIRS = -L/usr/X11R6/lib
|
|
|
|
DEFINES += -DHAVE_OSS
|
2003-03-05 22:45:14 +00:00
|
|
|
else
|
2003-06-29 17:06:16 +00:00
|
|
|
LDFLAGS = -lX11 -lm -lXt -lXmu -lnsl -ldl
|
2002-05-16 13:02:57 +00:00
|
|
|
DEFINES += -DBIG_ENDIAN
|
2002-04-19 14:12:31 +00:00
|
|
|
LIBDIRS =
|
|
|
|
endif
|
2003-03-05 22:45:14 +00:00
|
|
|
endif
|
2003-07-04 08:30:01 +00:00
|
|
|
endif
|
2002-03-25 14:21:30 +00:00
|
|
|
|
2002-08-11 09:17:47 +00:00
|
|
|
CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall
|
2002-03-25 14:21:30 +00:00
|
|
|
|
2002-07-15 13:19:00 +00:00
|
|
|
APPCFLAGS = $(DEBUG) $(DEFINES) -DAPPSVERSION=\"$(VERSION)\" $(APPINCLUDES) -W -Wall
|
2002-06-17 13:33:47 +00:00
|
|
|
|
2002-10-11 11:13:03 +00:00
|
|
|
ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
|
2002-10-21 20:15:23 +00:00
|
|
|
LCDSRSC = lcd-recorder.c sysfont.c font.c
|
2002-10-11 11:13:03 +00:00
|
|
|
else
|
2003-01-10 10:02:27 +00:00
|
|
|
LCDSRSC = lcd-playersim.c lcd-player.c font-player.c lcd-player-charset.c
|
2002-10-11 11:13:03 +00:00
|
|
|
endif
|
2004-01-05 23:19:39 +00:00
|
|
|
FIRMSRCS = $(LCDSRSC) id3.c debug.c usb.c mpeg.c mp3_playback.c power.c\
|
2003-05-09 16:01:21 +00:00
|
|
|
powermgmt.c panic.c mp3data.c sprintf.c buffer.c
|
2002-05-02 14:12:08 +00:00
|
|
|
|
2002-09-24 12:41:41 +00:00
|
|
|
APPS = main.c tree.c menu.c credits.c main_menu.c language.c\
|
2002-10-12 13:31:22 +00:00
|
|
|
playlist.c wps.c wps-display.c settings.c status.c icons.c\
|
2003-06-29 16:43:15 +00:00
|
|
|
screens.c peakmeter.c sleeptimer.c keyboard.c onplay.c\
|
2004-01-14 00:13:04 +00:00
|
|
|
misc.c plugin.c playlist_viewer.c bookmark.c
|
2002-06-24 21:41:01 +00:00
|
|
|
|
2003-10-01 22:30:04 +00:00
|
|
|
MENUS = settings_menu.c sound_menu.c playlist_menu.c
|
2002-05-16 13:02:57 +00:00
|
|
|
|
2002-05-21 14:35:18 +00:00
|
|
|
ifeq ($(DISPLAY),-DHAVE_LCD_BITMAP)
|
2003-06-29 16:43:15 +00:00
|
|
|
APPS += bmp.c widgets.c
|
2002-05-21 14:35:18 +00:00
|
|
|
endif
|
2002-05-02 21:30:58 +00:00
|
|
|
|
2002-08-13 09:46:25 +00:00
|
|
|
SRCS = screenhack.c uibasic.c resources.c visual.c lcd-x11.c stubs.c \
|
2003-12-15 10:25:51 +00:00
|
|
|
button-x11.c io.c thread.c sim_icons.c $(APPS) $(MENUS) $(FIRMSRCS) \
|
|
|
|
lcd-common.c
|
2002-04-25 08:06:38 +00:00
|
|
|
|
2003-06-29 16:43:15 +00:00
|
|
|
ROCKSRC := $(wildcard $(APPDIR)/plugins/*.c)
|
|
|
|
ROCKS := $(ROCKSRC:$(APPDIR)/plugins/%.c=$(OBJDIR)/%.rock)
|
|
|
|
|
2002-09-18 14:08:05 +00:00
|
|
|
OBJS := $(OBJDIR)/lang.o $(SRCS:%.c=$(OBJDIR)/%.o)
|
2002-03-25 14:21:30 +00:00
|
|
|
|
2003-07-10 11:52:42 +00:00
|
|
|
all: $(TOOLSDIR)/convbdf $(TARGET) $(EXTRA_TARGETS) $(ROCKS)
|
|
|
|
|
|
|
|
$(TOOLSDIR)/convbdf:
|
|
|
|
$(MAKE) -C $(TOOLSDIR)
|
2002-03-25 14:21:30 +00:00
|
|
|
|
|
|
|
clean:
|
2002-09-25 14:11:47 +00:00
|
|
|
$(RM) $(OBJS) *~ core $(TARGET) $(CLIENTS) $(OBJDIR)/lang.[cho] \
|
2003-06-29 16:43:15 +00:00
|
|
|
$(OBJDIR)/build.lang $(OBJDIR)/*.o $(OBJDIR)/sysfont.c \
|
|
|
|
$(ROCKS) $(OBJDIR)/credits.raw
|
2002-04-25 08:06:38 +00:00
|
|
|
$(RM) -r $(DEPS)
|
2002-03-25 14:21:30 +00:00
|
|
|
|
2003-06-29 16:43:15 +00:00
|
|
|
$(OBJDIR)/%.rock: $(APPDIR)/plugins/%.c $(APPDIR)/plugin.h
|
|
|
|
$(CC) $(APPCFLAGS) -DPLUGIN -shared $< -o $@
|
|
|
|
|
2002-03-25 14:21:30 +00:00
|
|
|
distclean: clean
|
|
|
|
$(RM) config.cache
|
|
|
|
|
2002-10-15 07:51:25 +00:00
|
|
|
$(OBJDIR)/credits.raw: $(DOCSDIR)/CREDITS
|
|
|
|
perl $(APPDIR)/credits.pl < $< > $@
|
|
|
|
|
|
|
|
$(OBJDIR)/credits.o: $(APPDIR)/credits.c $(APPDIR)/credits.h $(OBJDIR)/credits.raw
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-05-18 11:43:03 +00:00
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/menu.o: $(APPDIR)/menu.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-05-06 08:43:00 +00:00
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/main_menu.o: $(APPDIR)/main_menu.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-05-21 14:35:18 +00:00
|
|
|
|
2003-06-29 16:43:15 +00:00
|
|
|
$(OBJDIR)/plugin.o: $(APPDIR)/plugin.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-12-04 15:04:43 +00:00
|
|
|
$(OBJDIR)/keyboard.o: $(MACHINEDIR)/keyboard.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-09-24 12:41:41 +00:00
|
|
|
$(OBJDIR)/language.o: $(APPDIR)/language.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/sound_menu.o: $(APPDIR)/sound_menu.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-05-27 06:55:31 +00:00
|
|
|
|
2002-06-24 21:41:01 +00:00
|
|
|
$(OBJDIR)/settings_menu.o: $(APPDIR)/settings_menu.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2003-07-01 21:05:43 +00:00
|
|
|
$(OBJDIR)/playlist_menu.o: $(APPDIR)/playlist_menu.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-09-03 08:30:15 +00:00
|
|
|
$(OBJDIR)/icons.o: $(MACHINEDIR)/icons.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-08-07 10:35:26 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/widgets.o: $(RECDIR)/widgets.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-05-08 11:05:28 +00:00
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/main.o: $(APPDIR)/main.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-04-28 00:00:02 +00:00
|
|
|
|
2003-05-04 09:31:44 +00:00
|
|
|
$(OBJDIR)/misc.o: $(APPDIR)/misc.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-06-25 13:26:04 +00:00
|
|
|
$(OBJDIR)/wps.o: $(APPDIR)/wps.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-12-03 22:49:48 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/sleeptimer.o: $(APPDIR)/sleeptimer.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-06-25 13:26:04 +00:00
|
|
|
|
2002-08-30 11:04:41 +00:00
|
|
|
$(OBJDIR)/wps-display.o: $(APPDIR)/wps-display.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/bmp.o: $(RECDIR)/bmp.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-05-16 13:02:57 +00:00
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/tree.o: $(APPDIR)/tree.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2003-03-12 20:23:07 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/onplay.o: $(APPDIR)/onplay.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-04-30 13:14:59 +00:00
|
|
|
|
2002-06-04 21:45:51 +00:00
|
|
|
$(OBJDIR)/playlist.o: $(APPDIR)/playlist.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2003-12-10 00:11:25 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/playlist_viewer.o: $(APPDIR)/playlist_viewer.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-06-17 13:33:47 +00:00
|
|
|
|
2004-01-14 00:13:04 +00:00
|
|
|
$(OBJDIR)/bookmark.o: $(APPDIR)/bookmark.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-09-25 14:11:47 +00:00
|
|
|
$(OBJDIR)/build.lang: $(APPDIR)/lang/$(LANGUAGE).lang
|
|
|
|
perl $(TOOLSDIR)/uplang $(APPDIR)/lang/english.lang $< > $@
|
|
|
|
|
|
|
|
$(OBJDIR)/lang.o: $(OBJDIR)/build.lang
|
|
|
|
perl -s $(TOOLSDIR)/genlang -p=$(OBJDIR)/lang $<
|
2002-09-18 14:08:05 +00:00
|
|
|
$(CC) $(CFLAGS) -c $(OBJDIR)/lang.c -o $@
|
2002-09-17 21:54:47 +00:00
|
|
|
|
2002-09-23 11:17:52 +00:00
|
|
|
$(OBJDIR)/lcd-recorder.o: $(DRIVERS)/lcd-recorder.c
|
|
|
|
$(CC) $(CFLAGS) -DHAVE_LCD_BITMAP -c $< -o $@
|
2002-04-11 12:41:27 +00:00
|
|
|
|
2002-09-20 08:07:51 +00:00
|
|
|
$(OBJDIR)/sysfont.o: $(FIRMWAREDIR)/fonts/clR6x8.bdf
|
|
|
|
$(TOOLSDIR)/convbdf -c -o $(OBJDIR)/sysfont.c $<
|
|
|
|
$(CC) $(APPCFLAGS) -c $(OBJDIR)/sysfont.c -o $@
|
2002-09-12 13:33:59 +00:00
|
|
|
|
|
|
|
$(OBJDIR)/font.o: $(FIRMWAREDIR)/font.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-06-27 00:25:19 +00:00
|
|
|
$(OBJDIR)/settings.o: $(APPDIR)/settings.c
|
2002-06-20 09:42:51 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-07-22 22:59:47 +00:00
|
|
|
$(OBJDIR)/status.o: $(APPDIR)/status.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-09-24 17:22:12 +00:00
|
|
|
$(OBJDIR)/screens.o: $(APPDIR)/screens.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-09-27 09:31:31 +00:00
|
|
|
$(OBJDIR)/peakmeter.o: $(RECDIR)/peakmeter.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/id3.o: $(FIRMWAREDIR)/id3.c
|
2002-06-17 13:33:47 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-05-05 10:29:17 +00:00
|
|
|
|
2003-03-10 14:55:31 +00:00
|
|
|
$(OBJDIR)/mp3data.o: $(FIRMWAREDIR)/mp3data.c
|
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/debug.o: $(FIRMWAREDIR)/debug.c
|
2002-05-06 11:24:08 +00:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-08-11 09:17:47 +00:00
|
|
|
$(OBJDIR)/panic.o: $(FIRMWAREDIR)/panic.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-06-30 14:37:40 +00:00
|
|
|
$(OBJDIR)/mpeg.o: $(FIRMWAREDIR)/mpeg.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2004-01-05 23:42:56 +00:00
|
|
|
$(OBJDIR)/mp3_playback.o: $(FIRMWAREDIR)/mp3_playback.c
|
2004-01-05 23:19:39 +00:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/sprintf.o: $(COMMON)/sprintf.c
|
2002-07-15 13:19:00 +00:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2002-06-17 13:33:47 +00:00
|
|
|
|
2003-12-15 10:25:51 +00:00
|
|
|
$(OBJDIR)/lcd-common.o: $(SIMCOMMON)/lcd-common.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2003-05-09 16:01:21 +00:00
|
|
|
$(OBJDIR)/buffer.o: $(FIRMWAREDIR)/buffer.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-10-02 16:33:26 +00:00
|
|
|
$(OBJDIR)/ctype.o: $(COMMON)/ctype.c
|
|
|
|
$(CC) $(CFLAGS) $(APPINCLUDES) -c $< -o $@
|
|
|
|
|
2003-12-15 10:25:51 +00:00
|
|
|
$(OBJDIR)/stubs.o: $(SIMCOMMON)/stubs.c
|
2003-02-07 09:42:57 +00:00
|
|
|
$(CC) $(APPCFLAGS) -c $< -o $@
|
2002-08-21 10:43:31 +00:00
|
|
|
|
2003-12-15 10:25:51 +00:00
|
|
|
$(OBJDIR)/sim_icons.o: $(SIMCOMMON)/sim_icons.c
|
2002-08-21 10:43:31 +00:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2002-08-13 09:46:25 +00:00
|
|
|
|
2002-06-30 14:37:40 +00:00
|
|
|
$(OBJDIR)/usb.o: $(FIRMWAREDIR)/usb.c
|
2002-07-15 13:19:00 +00:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2002-06-30 14:37:40 +00:00
|
|
|
|
2002-08-07 11:28:04 +00:00
|
|
|
$(OBJDIR)/powermgmt.o: $(FIRMWAREDIR)/powermgmt.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-08-11 09:17:47 +00:00
|
|
|
$(OBJDIR)/unicode.o: $(FIRMWAREDIR)/unicode.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
|
|
|
$(OBJDIR)/ajf.o: $(FIRMWAREDIR)/ajf.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-07-16 11:11:00 +00:00
|
|
|
$(OBJDIR)/power.o: $(DRIVERS)/power.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2003-01-10 10:02:27 +00:00
|
|
|
$(OBJDIR)/lcd-player-charset.o: $(DRIVERS)/lcd-player-charset.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2003-12-15 10:25:51 +00:00
|
|
|
$(OBJDIR)/lcd-playersim.o: $(SIMCOMMON)/lcd-playersim.c
|
2002-10-17 18:38:32 +00:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2002-06-17 13:33:47 +00:00
|
|
|
|
2003-12-15 10:25:51 +00:00
|
|
|
$(OBJDIR)/font-player.o: $(SIMCOMMON)/font-player.c
|
2002-10-28 20:07:37 +00:00
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-10-18 09:21:29 +00:00
|
|
|
$(OBJDIR)/lcd-player.o: $(DRIVERS)/lcd-player.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
|
2002-06-17 13:33:47 +00:00
|
|
|
# these ones are simulator-specific
|
2002-05-02 14:12:08 +00:00
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
$(OBJDIR)/%.o: %.c
|
|
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
2002-03-25 14:21:30 +00:00
|
|
|
|
2003-03-05 22:45:14 +00:00
|
|
|
ifeq ($(UNAME),CYGWIN)
|
|
|
|
$(TARGET): $(OBJS)
|
|
|
|
$(CC) -g -o $(TARGET) $(OBJS) $(LIBDIRS) $(LDFLAGS) $(LIBS)
|
|
|
|
else
|
2002-03-25 14:21:30 +00:00
|
|
|
$(TARGET): $(OBJS)
|
2002-05-09 23:54:47 +00:00
|
|
|
$(CC) -g -o $(TARGET) $(LIBDIRS) $(LDFLAGS) $(OBJS) $(LIBS)
|
2003-03-05 22:45:14 +00:00
|
|
|
endif
|
2002-03-25 14:21:30 +00:00
|
|
|
|
2002-05-31 07:23:07 +00:00
|
|
|
DEPS:=$(OBJDIR)/.deps
|
2002-04-25 08:06:38 +00:00
|
|
|
|
|
|
|
$(DEPS)/%.d: %.c
|
|
|
|
@$(SHELL) -c 'if [ ! -d $(DEPS) ]; then \
|
|
|
|
echo Creating the dependency directory: $(DEPS); \
|
2002-05-31 07:23:07 +00:00
|
|
|
mkdir -p $(DEPS); fi'
|
2002-04-25 08:06:38 +00:00
|
|
|
@echo "Updating Dependencies for $<"
|
|
|
|
@$(SHELL) -ec '$(CC) -MM $(CFLAGS) $< \
|
2002-05-31 07:23:07 +00:00
|
|
|
|sed '\''s|\($*\)\.o[ :]*|$(OBJDIR)/\1.o $(<:%.c=%.d) : |g'\'' > $@; \
|
2002-04-25 08:06:38 +00:00
|
|
|
[ -s $@ ] || rm -f $@'
|
2002-04-11 12:41:27 +00:00
|
|
|
|
2002-04-25 08:06:38 +00:00
|
|
|
-include $(SRCS:%.c=$(DEPS)/%.d)
|
2002-08-15 10:04:53 +00:00
|
|
|
|
|
|
|
tags:
|
|
|
|
@$(SHELL) -c 'for d in $(SRCDIRS); do { etags -o $(OBJDIR)/TAGS -a $$d/*.[ch]; }; done'
|
|
|
|
|