Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: a284dc7130
Fetching contributors…

Cannot retrieve contributors at this time

file 23 lines (17 sloc) 0.676 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
.PHONY : all clean

CFLAGS := -Wall -L/usr/lib -lSDL -lSDL_gfx -lasound -lfftw3 -lm -g -pthread -lrt
CPPFLAGS := -Wall -L/usr/lib -lSDL -lSDL_gfx -lasound -lfftw3 -lm -g -pthread -lrt -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT
DIRS := $(shell find . -type d)
FILES := $(foreach dir, $(DIRS), $(wildcard $(dir)/*.c) \
$(wildcard $(dir)/*.cpp))
OBJS := $(addsuffix .o, $(basename $(FILES)))
APP := HAX_Audio_eXtractor

all: $(OBJS)
$(CXX) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) $(OBJS) -o $(APP)

clean:
rm -f $(OBJS) $(APP) $(OBJS:.o=.d)

%.d: %.cpp
$(CXX) $(CPPFLAGS) -MM -MF $@ $<

%.d: %.c
$(CC) $(CFLAGS) -MM -MF $@ $<

-include $(OBJS:.o=.d)
Something went wrong with that request. Please try again.