54 lines
814 B
Makefile
54 lines
814 B
Makefile
#/bin/sh
|
|
###############################################################
|
|
# $Author$
|
|
# $Date$
|
|
# $Revision$
|
|
#
|
|
# Copyright 2002 California Institute of Technology
|
|
#
|
|
###############################################################
|
|
|
|
SUFFIXES=
|
|
SUFFIXES= .cpp .d .o
|
|
|
|
OBJDIR = .
|
|
|
|
CXX_FLAGS = @CXXFLAGS@ $(CXX_OPT)
|
|
|
|
# list your object files here
|
|
OBJS = user.o
|
|
|
|
CXX_INCLUDES = -I../src
|
|
|
|
LIB = @buildlib@/libuser.a
|
|
|
|
DEPENDS = $(OBJS:.o=.d)
|
|
|
|
%.d:
|
|
g++ -MM $(CXX_INCLUDES) $*.cpp > $*.d
|
|
|
|
.cpp.o:
|
|
@CXX@ -c $< $(CXX_FLAGS) $(CXX_INCLUDES)
|
|
|
|
.f.o:
|
|
@F77@ -c $< $(F77_FLAGS)
|
|
|
|
all lib: $(LIB)
|
|
|
|
$(LIB): $(OBJS)
|
|
@ARCHIVE@ $(LIB) $(OBJS) > /dev/null
|
|
|
|
clean:
|
|
$(RM) *.o *~ $(LIB)
|
|
|
|
depends: $(DEPENDS)
|
|
cat *.d > .depends
|
|
$(RM) $(DEPENDS)
|
|
|
|
TAGS:
|
|
etags *.h *.cpp
|
|
|
|
ifeq ($(wildcard .depends), .depends)
|
|
include .depends
|
|
endif
|
|
|