Changeset 3427 in Sophya for trunk/SophyaProg/Examples/auto_makefile
- Timestamp:
- Dec 8, 2007, 11:29:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaProg/Examples/auto_makefile
r2437 r3427 1 1 # ------------------ SOPHYA ------------------------- 2 # Makefile fo tcompiling and linking a simple C++2 # Makefile for compiling and linking a simple C++ 3 3 # program with SOPHYA class library 4 4 # --------------------------------------------------- … … 9 9 # - links prog_name.o -> prog_name 10 10 11 # SOPHYA compilation rules - OPTFLAG and DBGFLAG12 # can be used to define Debug and optimization flags13 # Additional options can be specified using USERFLAGS14 # USERFLAGS := -I/.../myincludes15 11 16 include $(SOPHYABASE REP)/Include/MakefileUser.h12 include $(SOPHYABASE)/include/sophyamake.inc 17 13 18 14 19 # ----- List of SOPHYA libraries20 ifdef NOSHLIB21 LIBF = $(LIB)libLinAlg.a $(LIB)libIFFTW.a $(LIB)libFitsIOServer.a $(LIB)libSamba.a $(LIB)libSkyMap.a $(LIB)libSkyT.a $(LIB)libNTools.a $(LIB)libHiStats.a $(LIB)libTArray.a $(LIB)libSysTools.a22 LIBS = -L$(LIB) -lLinAlg -lIFFTW -lFitsIOServer -lSamba -lSkyMap -lSkyT -lNTools -lHiStats -lTArray -lSysTools -lm23 ifeq ($(CXX),cxx)24 # librairie des instances de templates cxx25 LIBS := $(LIBS) -lsotcxx26 endif27 else28 LIBF = $(SLB)libsophya.so $(SLB)libextsophya.so29 LIBS = -L$(SLB) -lextsophya -lsophya -lm30 endif31 32 LDLIBS := $(LIBS) $(LDLIBS)33 15 34 16 %:%.cc 35 17 %:%.o 36 18 %.o:%.cc 37 %.o:%.c38 %:%.c39 19 40 20 .PRECIOUS: % %.o … … 43 23 # --- Compilation and linking rules 44 24 %:%.o 45 $( LINK.cc) -o $@ $< $(LIBS)25 $(CXXLINK) -o $@ $< $(SOPHYAEXTSLBLIST) 46 26 47 27 %.o:%.cc 48 $(COMPILE.cc) $(USERFLAGS) -o $@ $< 49 50 %:%.c 51 $(LINK.c) $(USERFLAGS) -o $@ $< $(LIBS) 28 $(CXXCOMPILE) -c -o $@ $< 52 29 53 30
Note:
See TracChangeset
for help on using the changeset viewer.