2002-08-02 12:17:10 +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.
|
|
|
|
#
|
|
|
|
############################################################################
|
|
|
|
|
2003-12-15 10:33:53 +00:00
|
|
|
SIMCOMMON = ../common
|
2002-09-03 10:13:46 +00:00
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
DEPFILE = $(OBJDIR)/dep-simwin
|
2002-08-02 12:17:10 +00:00
|
|
|
|
|
|
|
RM = rm -f
|
|
|
|
DEBUG = -g
|
|
|
|
|
2005-05-07 22:41:17 +00:00
|
|
|
INCLUDES = -I. -I$(SIMCOMMON) -I$(OBJDIR) -I$(FIRMDIR)/export -I$(APPSDIR) \
|
|
|
|
-I$(BUILDDIR)
|
2004-07-20 10:52:00 +00:00
|
|
|
|
2003-03-17 21:47:43 +00:00
|
|
|
DEFINES = -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
|
2005-02-11 23:56:38 +00:00
|
|
|
$(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES)
|
2002-08-02 12:17:10 +00:00
|
|
|
|
2005-03-06 15:53:44 +00:00
|
|
|
# This sets up 'SRC' based on the files mentioned in SOURCES
|
|
|
|
include $(TOOLSDIR)/makesrc.inc
|
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
|
2002-08-02 12:17:10 +00:00
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
SOURCES = $(SRC)
|
|
|
|
DIRS = .
|
2002-08-02 12:17:10 +00:00
|
|
|
|
2003-02-19 14:20:16 +00:00
|
|
|
CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) -W -Wall -mno-cygwin
|
2002-08-02 12:17:10 +00:00
|
|
|
|
2005-05-07 22:41:17 +00:00
|
|
|
OUTFILE = $(BUILDDIR)/libsim.a
|
2005-02-18 13:47:17 +00:00
|
|
|
|
|
|
|
all: $(OUTFILE)
|
|
|
|
@echo "MAKE in common sim"
|
|
|
|
$(MAKE) -C $(SIMCOMMON)
|
|
|
|
|
2005-02-22 12:19:12 +00:00
|
|
|
$(OUTFILE): $(OBJS) $(OBJDIR)/UI256.bmp $(OBJDIR)/uisw32-res.o
|
2005-02-18 13:47:17 +00:00
|
|
|
@echo "AR+RANLIB $@"
|
2005-02-22 12:19:12 +00:00
|
|
|
@$(AR) ruv $@ $(OBJS) $(OBJDIR)/uisw32-res.o >/dev/null 2>&1
|
2005-02-18 13:47:17 +00:00
|
|
|
@$(RANLIB) $@
|
2002-08-02 12:17:10 +00:00
|
|
|
|
|
|
|
clean:
|
2005-02-18 13:47:17 +00:00
|
|
|
@echo "cleaning simwin"
|
|
|
|
@$(RM) $(OBJS) *~ core $(OUTFILE) $(OBJDIR)/uisw32-res.o \
|
|
|
|
$(OBJDIR)/UI256.bmp $(DEPFILE)
|
|
|
|
@$(MAKE) -C $(SIMCOMMON) clean
|
2002-08-02 12:17:10 +00:00
|
|
|
|
2004-07-20 10:52:00 +00:00
|
|
|
################## Specific dependencies ##################
|
2005-01-17 00:25:23 +00:00
|
|
|
$(OBJDIR)/UI256.bmp: UI-$(ARCHOS).bmp
|
|
|
|
@echo UI
|
|
|
|
@cp $< $@
|
|
|
|
|
|
|
|
$(OBJDIR)/uisw32-res.o: uisw32.rc $(OBJDIR)/UI256.bmp
|
2005-05-07 22:41:17 +00:00
|
|
|
@echo "WINDRES"
|
|
|
|
@$(WINDRES) --include-dir $(OBJDIR) -i $< -o $@
|
2005-02-22 12:19:12 +00:00
|
|
|
|
|
|
|
include $(TOOLSDIR)/make.inc
|
2002-08-02 12:17:10 +00:00
|
|
|
|
2005-02-18 13:47:17 +00:00
|
|
|
-include $(DEPFILE)
|