change the %St tag so it only shows the filename of file settings, not the full path...
[kugel-rb.git] / uisimulator / common / Makefile
blobef68230153d5a26bf54b54306ba8e4936fc6776f
1 ############################################################################
2 # __________ __ ___.
3 # Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 # Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 # Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 # Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 # \/ \/ \/ \/ \/
8 # $Id$
10 # Copyright (C) 2002 by Daniel Stenberg <daniel@haxx.se>
12 # All files in this archive are subject to the GNU General Public License.
13 # See the file COPYING in the source tree root for full license agreement.
15 # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 # KIND, either express or implied.
18 ############################################################################
20 DEPFILE = $(OBJDIR)/dep-commonsim
22 RM = rm -f
23 DEBUG = -g
25 # Use this for simulator-only files
26 INCLUDES = -I. -I$(OBJDIR) $(TARGET_INC) -I$(FIRMDIR)/export -I$(APPSDIR) \
27 -I$(ROOTDIR)/uisimulator/$(SIMVER) -I$(BUILDDIR)
29 # This sets up 'SRC' based on the files mentioned in SOURCES
30 include $(TOOLSDIR)/makesrc.inc
32 OBJS := $(SRC:%.c=$(OBJDIR)/%.o)
34 DEFINES := -DHAVE_CONFIG_H -DGETTIMEOFDAY_TWO_ARGS -DSIMULATOR \
35 $(TARGET) -DAPPSVERSION=\"$(VERSION)\" -DMEM=${MEMORYSIZE} $(EXTRA_DEFINES)
37 SOURCES = $(SRC)
39 DIRS = .
41 CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(GCCOPTS)
43 OUTFILE = $(BUILDDIR)/libcomsim.a
45 all: $(OUTFILE)
47 include $(TOOLSDIR)/make.inc
49 clean:
50 $(call PRINTS,cleaning commonsim)$(RM) $(OBJS) *~ core $(DEPFILE) $(OUTFILE)
52 $(OUTFILE): $(OBJS)
53 $(call PRINTS,AR+RANLIB $(@F))$(AR) ruv $@ $(OBJS) >/dev/null 2>&1
54 $(SILENT)$(RANLIB) $@
56 -include $(DEPFILE)