diff options
Diffstat (limited to 'apps/codecs/libmusepack/Makefile')
-rw-r--r-- | apps/codecs/libmusepack/Makefile | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/apps/codecs/libmusepack/Makefile b/apps/codecs/libmusepack/Makefile index 6912f74e75..8e65915feb 100644 --- a/apps/codecs/libmusepack/Makefile +++ b/apps/codecs/libmusepack/Makefile | |||
@@ -15,8 +15,8 @@ ifdef APPEXTRA | |||
15 | endif | 15 | endif |
16 | 16 | ||
17 | MUSEPACKOPTS = -O2 | 17 | MUSEPACKOPTS = -O2 |
18 | CFLAGS = $(GCCOPTS) $(MUSEPACKOPTS)\ | 18 | CFLAGS = $(GCCOPTS) $(MUSEPACKOPTS) $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) \ |
19 | $(INCLUDES) $(TARGET) $(EXTRA_DEFINES) -DMEM=${MEMORYSIZE} | 19 | -DMEM=${MEMORYSIZE} |
20 | 20 | ||
21 | # This sets up 'SRC' based on the files mentioned in SOURCES | 21 | # This sets up 'SRC' based on the files mentioned in SOURCES |
22 | include $(TOOLSDIR)/makesrc.inc | 22 | include $(TOOLSDIR)/makesrc.inc |
@@ -27,22 +27,18 @@ OBJS = $(patsubst %.S, $(OBJDIR)/%.o, $(OBJS2)) | |||
27 | DEPFILE = $(OBJDIR)/dep-libmusepack | 27 | DEPFILE = $(OBJDIR)/dep-libmusepack |
28 | DIRS = | 28 | DIRS = |
29 | 29 | ||
30 | OUTPUT = $(OBJDIR)/libmusepack.a | ||
31 | |||
32 | all: $(OUTPUT) | 30 | all: $(OUTPUT) |
33 | 31 | ||
34 | $(OUTPUT): $(OBJS) | 32 | $(OUTPUT): $(OBJS) |
35 | @echo "AR $@" | 33 | @echo "AR $@" |
36 | @$(AR) ruv $@ $+ >/dev/null 2>&1 | 34 | @$(AR) ruv $@ $+ >/dev/null 2>&1 |
37 | 35 | ||
38 | $(OBJDIR)/libmusepack/%.o: $(APPSDIR)/codecs/libmusepack/%.c | ||
39 | @echo "CC $<" | ||
40 | @$(CC) -c -O2 $(CFLAGS) -I$(APPSDIR)/codecs/libmusepack/ $< -o $@ | ||
41 | |||
42 | include $(TOOLSDIR)/make.inc | 36 | include $(TOOLSDIR)/make.inc |
43 | 37 | ||
44 | clean: | 38 | clean: |
45 | @echo "cleaning libmusepack" | 39 | @echo "cleaning libmusepack" |
46 | @rm -f $(OBJS) $(OUTPUT) $(DEPFILE) | 40 | @rm -f $(OBJS) $(OUTPUT) $(DEPFILE) |
47 | 41 | ||
42 | ifneq ($(MAKECMDGOALS),clean) | ||
48 | -include $(DEPFILE) | 43 | -include $(DEPFILE) |
44 | endif | ||