2002-08-02 12:15:38 +00:00
|
|
|
############################################################################
|
|
|
|
# __________ __ ___.
|
|
|
|
# Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
# Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
# Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
# Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
# \/ \/ \/ \/ \/
|
|
|
|
# $Id$
|
|
|
|
#
|
|
|
|
# Copyright (C) 2002 by Felix Arends
|
|
|
|
#
|
|
|
|
# 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-09-04 01:51:09 +00:00
|
|
|
|
2002-10-16 16:26:09 +00:00
|
|
|
#CHANGE THIS FIELD TO SPECIFY RECORDER OR PLAYER (Player does not work very well atm)
|
2002-09-04 01:51:09 +00:00
|
|
|
TARGET = RECORDER
|
|
|
|
|
2002-08-02 12:15:38 +00:00
|
|
|
FIRMWAREDIR = ../../firmware
|
|
|
|
DRIVERS = $(FIRMWAREDIR)/drivers
|
|
|
|
COMMON = $(FIRMWAREDIR)/common
|
|
|
|
APPSCOMMON = ../common
|
2002-10-16 16:26:09 +00:00
|
|
|
TOOLSDIR = ..\..\tools
|
2002-08-02 12:15:38 +00:00
|
|
|
SIMDIR = ../win32/
|
|
|
|
APPDIR = ../../apps/
|
2002-09-04 01:51:09 +00:00
|
|
|
PLAYERDIR = $(APPDIR)player/
|
2002-08-02 12:15:38 +00:00
|
|
|
RECDIR = $(APPDIR)recorder/
|
|
|
|
RM = del
|
2002-10-16 16:26:09 +00:00
|
|
|
LANGUAGE = english
|
|
|
|
FONT = $(FIRMWAREDIR)/fonts/clR6x8.bdf
|
2002-08-02 12:15:38 +00:00
|
|
|
|
|
|
|
!IF ("$(TARGET)" == "RECORDER")
|
|
|
|
DISPLAY = -DHAVE_LCD_BITMAP
|
|
|
|
KEYPAD = -DHAVE_RECORDER_KEYPAD
|
2002-09-04 01:51:09 +00:00
|
|
|
MODEL_SPECIFIC_DIR = $(RECDIR)
|
2002-08-02 12:15:38 +00:00
|
|
|
!ELSE
|
|
|
|
DISPLAY = -DHAVE_LCD_CHARCELLS
|
|
|
|
KEYPAD = -DHAVE_PLAYER_KEYPAD
|
2002-09-04 01:51:09 +00:00
|
|
|
MODEL_SPECIFIC_DIR = $(PLAYERDIR)
|
2002-08-02 12:15:38 +00:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
CC = cl
|
|
|
|
RC = rc
|
|
|
|
LINK = link
|
2002-10-16 16:26:09 +00:00
|
|
|
DEFINES = $(DEFINES) -DWIN32 -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR $(KEYPAD) $(DISPLAY) -DAPPSVERSION=\"WIN32SIM\"
|
2002-08-02 12:15:38 +00:00
|
|
|
LDFLAGS = /OUT:uisw32.exe /SUBSYSTEM:windows /NOLOGO /MACHINE:IX86 kernel32.lib user32.lib gdi32.lib
|
2002-09-04 01:51:09 +00:00
|
|
|
INCLUDES = -I$(FIRMWAREDIR) -I$(DRIVERS) -I$(COMMON) -I$(APPSCOMMON) -I$(SIMDIR) -I$(APPDIR) -I$(MODEL_SPECIFIC_DIR)
|
2002-08-22 17:58:24 +00:00
|
|
|
LIBS = /DEFAULTLIB:gdi32.lib /DEFAULTLIB:user32.lib
|
2002-08-02 12:15:38 +00:00
|
|
|
|
|
|
|
CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) /MD /Fd"Release/vc70.pdb" /c
|
|
|
|
|
2002-10-16 16:26:09 +00:00
|
|
|
SRCS = *.c \
|
|
|
|
$(DRIVERS)/power.c \
|
2002-08-02 12:15:38 +00:00
|
|
|
$(APPDIR)*.c \
|
2002-10-16 16:26:09 +00:00
|
|
|
$(PLAYERDIR)*.c \
|
|
|
|
$(APPSCOMMON)/lcd-common.c $(APPSCOMMON)/mpegplay.c $(APPSCOMMON)/sim_icons.c $(APPSCOMMON)/stubs.c \
|
|
|
|
$(FIRMWAREDIR)/mpeg.c $(FIRMWAREDIR)/id3.c $(FIRMWAREDIR)/usb.c $(FIRMWAREDIR)/mpeg.c $(FIRMWAREDIR)/font.c $(FIRMWAREDIR)/powermgmt.c \
|
2002-08-02 12:15:38 +00:00
|
|
|
$(COMMON)/sprintf.c $(COMMON)/strtok.c
|
|
|
|
|
|
|
|
!IF ("$(DISPLAY)" == "-DHAVE_LCD_BITMAP")
|
2002-10-16 16:26:09 +00:00
|
|
|
SRCS = $(SRCS) $(RECDIR)*.c $(DRIVERS)/lcd-recorder.c
|
|
|
|
!ELSE
|
2002-10-18 15:22:20 +00:00
|
|
|
SRCS = $(SRCS) $(APPSCOMMON)/lcd-playersim.c $(DRIVERS)/lcd-player.c
|
2002-08-02 12:15:38 +00:00
|
|
|
!ENDIF
|
|
|
|
|
2002-10-16 16:26:09 +00:00
|
|
|
OBJS = lang.obj $(SRCS:.c=.obj) uisw32.res
|
|
|
|
|
|
|
|
all : uisw32.exe
|
|
|
|
|
|
|
|
$(APPDIR)credits.raw:
|
|
|
|
perl $(APPDIR)credits.pl < ../../docs/CREDITS > $(APPDIR)credits.raw
|
|
|
|
|
|
|
|
kernel.obj:
|
|
|
|
$(CC) $(CFLAGS) *.c
|
|
|
|
|
|
|
|
sysfont.c: $(FONT)
|
|
|
|
$(TOOLSDIR)\convbdf -c -o sysfont.c $(FONT)
|
2002-08-02 12:15:38 +00:00
|
|
|
|
2002-10-16 16:26:09 +00:00
|
|
|
sysfont.obj: sysfont.c
|
|
|
|
$(CC) $(CFLAGS) sysfont.c
|
|
|
|
|
|
|
|
uisw32.exe: $(APPDIR)credits.raw $(OBJS) sysfont.obj kernel.obj
|
|
|
|
$(LINK) $(LIBS) $(LDFLAGS) *.obj uisw32.res
|
|
|
|
|
|
|
|
uisw32.res:
|
2002-08-02 12:15:38 +00:00
|
|
|
$(RC) /r uisw32.rc
|
2002-10-16 16:26:09 +00:00
|
|
|
|
|
|
|
build.lang: $(APPDIR)/lang/$(LANGUAGE).lang
|
|
|
|
perl $(TOOLSDIR)/uplang $(APPDIR)/lang/english.lang $(APPDIR)/lang/$(LANGUAGE).lang > build.lang
|
|
|
|
|
|
|
|
lang.obj: build.lang
|
|
|
|
perl -s $(TOOLSDIR)/genlang -p=lang build.lang
|
|
|
|
$(CC) $(CFLAGS) -c lang.c -o lang.obj
|
2002-08-02 12:15:38 +00:00
|
|
|
|
|
|
|
clean:
|
2002-10-16 16:26:09 +00:00
|
|
|
$(RM) *.obj lang.c lang.h ..\..\apps\credits.raw lang.build uisw32.res uisw32.exe
|