fix: building shared lib on Mac/Darwin
[gss-tcad.git] / src / material / InP / makefile
blob821f6fe949af72f7caa697bed1d595107ca13cde
1 ALL: all
4 include ${PETSC_DIR}/bmake/common/base
5 include ../../../make.defs
7 all: libInP.so
8 cp libInP.so ..
9 OBJS = InP_basic.o InP_band.o InP_thermal.o InP_gen.o InP_Optical.o \
10 InP_mob_Analytic.o \
11 ../adolc_init.o
13 libInP.so:$(OBJS)
14 $(CXX) $(LDFSHARED) -o libInP.so $(OBJS) -lm
16 InP_band.o : InP_band.cc
17 InP_basic.o : InP_basic.cc
18 InP_thermal.o : InP_thermal.cc
19 InP_gen.o : InP_gen.cc
20 InP_Optical.o : InP_Optical.cc
22 InP_mob_Analytic.o : InP_mob_Analytic.cc
24 .cc.o:
25 $(CXX) $(CXXFLAGS) -c -fPIC $< $(INCLUDE) $(PETSC_INCLUDE)
27 clean:
28 rm -f *.o *.so