aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/projectM/cwrapper/Makefile.in
blob: fef3b80ba59082402ee35f86962193602e58ed54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#################################################
# projectM C-wrapper
# @configure_input@
#################################################

@SET_MAKE@

srcdir = @srcdir@
top_srcdir = @top_srcdir@

OBJECTS	= projectM-cwrapper.o
LIBRARY = libprojectM-cwrapper.a

CXX      = @CXX@
CXXFLAGS += @CXXFLAGS@
INCLUDES = -I@libprojectM_INCLUDEDIR@/libprojectM
DEFINES  = -DPROJECTM_VERSION_INT=@libprojectM_VERSION_INT@
RANLIB   = @RANLIB@

.PHONY: all clean distclean strip

all : $(LIBRARY)

$(LIBRARY): $(OBJECTS)
	ar ruv $(LIBRARY) $(OBJECTS)
	$(RANLIB) $(LIBRARY)

%.o : %.cpp
	$(CXX) $(CXXFLAGS) $(DEFINES) $(INCLUDES) -c $(<) -o $@

clean : 
	rm -f $(LIBRARY)
	rm -f $(OBJECTS)

distclean: clean
	rm -rf Makefile

strip : 
	strip $(LIBRARY)
	$(RANLIB) $(LIBRARY)