view Makefile.inc @ 52:b56513f872a5

Move files into subdirs
author Chris Cannam
date Wed, 14 Jan 2015 08:30:47 +0000
parents 0e0e18629917
children d761c5fb06a0
line wrap: on
line source

LIBRARY_EXT	?= .so
LIBRARY		?= vampyhost$(LIBRARY_EXT)
CXX		?= g++
CC		?= gcc

SRC_DIR		:= native

HEADERS		:= $(SRC_DIR)/PyPluginObject.h $(SRC_DIR)/PyRealTime.h $(SRC_DIR)/FloatConversion.h $(SRC_DIR)/VectorConversion.h
SOURCES		:= $(SRC_DIR)/PyPluginObject.cpp $(SRC_DIR)/PyRealTime.cpp $(SRC_DIR)/VectorConversion.cpp $(SRC_DIR)/vampyhost.cpp

OBJECTS		:= $(SOURCES:.cpp=.o)
OBJECTS		:= $(OBJECTS:.c=.o)

$(LIBRARY):	$(OBJECTS)
		$(CXX) -o $@ $^ $(LDFLAGS)

clean:		
		rm -f $(OBJECTS)

distclean:	clean
		rm -f $(LIBRARY)

depend:
	makedepend -Y -fMakefile.inc $(SOURCES) $(HEADERS)

# DO NOT DELETE

native/PyPluginObject.o: native/PyPluginObject.h native/FloatConversion.h
native/PyPluginObject.o: native/VectorConversion.h native/PyRealTime.h
native/PyRealTime.o: native/PyRealTime.h
native/VectorConversion.o: native/FloatConversion.h native/VectorConversion.h
native/vampyhost.o: native/PyRealTime.h native/PyPluginObject.h
native/vampyhost.o: native/VectorConversion.h