bluecore/ode/Makefile

24 lines
676 B
Makefile
Raw Permalink Normal View History

2008-01-16 11:45:17 +00:00
include ../Makefile.common
CXXFLAGS := -Iinclude -IOPCODE -DdTRIMESH_OPCODE $(CXXFLAGS)
CFLAGS := -Iinclude -IOPCODE -DdTRIMESH_OPCODE $(CFLAGS)
OBJ += $(patsubst %.cpp,%.o,$(wildcard src/*.cpp)) $(patsubst %.c,%.o,$(wildcard src/*.c)) $(patsubst %.cpp,%.o,$(wildcard OPCODE/*.cpp)) $(patsubst %.cpp,%.o,$(wildcard OPCODE/Ice/*.cpp))
LIBNAME = libode.a
all: $(LIBNAME)
$(LIBNAME): $(OBJ)
@echo Creating archive $@
@ar -csru $@ $(OBJ)
@echo
clean:
-@$(RM) src$(SLASH)*.o
-@$(RM) src$(SLASH)*.d
-@$(RM) OPCODE$(SLASH)*.o
-@$(RM) OPCODE$(SLASH)*.d
-@$(RM) OPCODE$(SLASH)ICE$(SLASH)*.o
-@$(RM) OPCODE$(SLASH)ICE$(SLASH)*.d
-@$(RM) $(LIBNAME)