From 27be5bc72855a0fbbdae230bc144624c9eb85f5e Mon Sep 17 00:00:00 2001 From: Michiel Van Der Kolk Date: Thu, 17 Mar 2005 20:50:03 +0000 Subject: Initial check in dumb 0.9.2 - has a few usages of floating point that should be rewritten to fixed point. seems to compile cleanly for iriver. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6197 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/dumb/make/Makefile.inc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 apps/codecs/dumb/make/Makefile.inc (limited to 'apps/codecs/dumb/make/Makefile.inc') diff --git a/apps/codecs/dumb/make/Makefile.inc b/apps/codecs/dumb/make/Makefile.inc new file mode 100644 index 0000000000..4137b04804 --- /dev/null +++ b/apps/codecs/dumb/make/Makefile.inc @@ -0,0 +1,34 @@ +# This file contains the main rules for compiling the library. It is included +# twice with different values for CFLAGS and OBJDIR, so the optimised and +# debugging libraries are both built. + +CORE_OBJECTS := $(addprefix $(OBJDIR)/, $(notdir $(patsubst %.c, %.o, $(CORE_MODULES)))) +ALLEGRO_OBJECTS := $(addprefix $(OBJDIR)/, $(notdir $(patsubst %.c, %.o, $(ALLEGRO_MODULES)))) + + +# Pass the current value of CFLAGS through to the commands. Or, more +# accurately, create a local copy of the current CFLAGS variable. This is +# necessary because Make doesn't expand variables in commands until they are +# executed. +$(CORE_LIB_FILE): CFLAGS := $(CFLAGS) +$(ALLEGRO_LIB_FILE): CFLAGS := $(CFLAGS) + + +$(OBJDIR)/%.o: src/core/%.c include/dumb.h include/internal/dumb.h + $(CC) -c -o $@ $< $(CFLAGS) + +$(OBJDIR)/%.o: src/helpers/%.c include/dumb.h + $(CC) -c -o $@ $< $(CFLAGS) + +$(OBJDIR)/%.o: src/it/%.c include/dumb.h include/internal/it.h + $(CC) -c -o $@ $< $(CFLAGS) + +$(OBJDIR)/%.o: src/allegro/%.c include/aldumb.h include/dumb.h \ + include/internal/aldumb.h include/internal/dumb.h + $(CC) -c -o $@ $< $(CFLAGS) $(WFLAGS_ALLEGRO) + +$(CORE_LIB_FILE): $(CORE_OBJECTS) + $(AR) rs $@ $^ + +$(ALLEGRO_LIB_FILE): $(ALLEGRO_OBJECTS) + $(AR) rs $@ $^ -- cgit v1.2.3