Debian Codegraph @

lib/Makefile.avm

raw
1
2 AR = ar clq
3 RANLIB = ranlib
4 CXX = g++
5
6 CXXFLAGS = -g -O2 -march=i586 -pipe -fPIC -DPIC -DHAVE_CONFIG_H -D_REENTRANT \
7 -DPLUGIN_PATH=\"/usr/lib/avifile0.6\" -Iaviread -I../include -I../../include -I/usr/include/SDL -Wall -Wno-unused
8 CFLAGS = $(CXXFLAGS)
9
10 SRCCXXFILES = $(shell find . -name '*.cpp' -print )
11 SRCCFILES = $(shell find . -name '*.c' -print )
12 OBJCXXFILES = $(SRCCXXFILES:.cpp=.o)
13 OBJCFILES = $(SRCCFILES:.c=.o)
14
15 TARGET = libaviplay
16
17 all: $(TARGET)
18
19 %.o: %.cpp
20 $(CXX) $(CXXFLAGS) -c -o $@ $<
21
22 libaviplay: $(OBJCXXFILES) $(OBJCFILES)
23 @$(RM) -f $@
24 @echo -n "linking library $@..."
25 @$(AR) $@ $(OBJFILES)
26 @$(RANLIB) $@
27 @echo "done"
28
29 .PHONY: all clean
30 clean:
31 $(RM) -f core `find . -name '*.[od]' -o -name '*~' \
32 -o -name '*.bak' -o -name '.*bak' -o -name core -o -name cscope.files \
33 -o -name '*.out' -o -name '*.lo' `
34 $(RM) -f libaviplay
35