To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / Makefile.inc @ 1:c73b7b595d9c
History | View | Annotate | Download (461 Bytes)
| 1 |
|
|---|---|
| 2 |
PLUGIN_EXT ?= .so |
| 3 |
PLUGIN ?= simple-cepstrum$(PLUGIN_EXT) |
| 4 |
CXX ?= g++ |
| 5 |
CC ?= gcc |
| 6 |
|
| 7 |
CFLAGS := $(CFLAGS) |
| 8 |
CXXFLAGS := $(CXXFLAGS) |
| 9 |
LDFLAGS := $(LDFLAGS) |
| 10 |
|
| 11 |
HEADERS := SimpleCepstrum.h |
| 12 |
|
| 13 |
SOURCES := SimpleCepstrum.cpp \ |
| 14 |
libmain.cpp |
| 15 |
|
| 16 |
OBJECTS := $(SOURCES:.cpp=.o) |
| 17 |
OBJECTS := $(OBJECTS:.c=.o) |
| 18 |
|
| 19 |
$(PLUGIN): $(OBJECTS) |
| 20 |
$(CXX) -o $@ $^ $(LDFLAGS) |
| 21 |
|
| 22 |
clean: |
| 23 |
rm $(OBJECTS) |
| 24 |
|
| 25 |
distclean: clean |
| 26 |
rm $(PLUGIN) |
| 27 |
|
| 28 |
libmain.cpp: $(HEADERS) |
| 29 |
SimpleCepstrum.cpp: $(HEADERS) |