Subversion Repositories OpenSees

Rev

Rev 4680 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4675 fmk 1
include ../../Makefile.def
2
 
3
ifeq ($(OS_FLAG), -D_LINUX)
4
 
5
 
4680 fmk 6
OBJS 		= elasticPPc.o elasticPlaneStressC.o
4675 fmk 7
 
4680 fmk 8
all: $(OBJS)
4682 fmk 9
	$(CC++) -shared -Wl,-soname,elasticPPc.so -o elasticPPc.so elasticPPc.o -lc
10
	$(CC++) -shared -Wl,-soname,elasticPPc.so -o elasticPlaneStressC.so elasticPlaneStressC.o -lc
4675 fmk 11
 
4680 fmk 12
elasticPPc.o: elasticPPc.c
13
	$(CC++) -fPIC $(INCLUDES) -g -c -Wall elasticPPc.c
4675 fmk 14
 
15
elasticPlaneStressC.o: elasticPlaneStressC.c
4680 fmk 16
	$(CC++) -fPIC $(INCLUDES) -g -c -Wall elasticPlaneStressC.c
4675 fmk 17
 
18
else
19
 
20
LIBRARY_C    	= elasticPPC.dylib
21
 
22
 
23
all: $(OBJS)
24
	$(CC++) $(OS_FLAG) -dynamiclib $(INCLUDES) -Wl,-undefined,suppress,-flat_namespace elasticPPC.c $(OUTSIDE_OBJS)  -current_version 1.0 -compatibility_version 1.0 -fvisibility=hidden -o elasticPPC.dylib
25
	$(CC++) $(OS_FLAG) -dynamiclib $(INCLUDES) -Wl,-undefined,suppress,-flat_namespace elasticPlaneStressC.c $(OUTSIDE_OBJS)  -current_version 1.0 -compatibility_version 1.0 -fvisibility=hidden -o elasticPlaneStressC.dylib
26
 
27
endif
28
 
29
# Miscellaneous
30
tidy:
31
	@$(RM) $(RMFLAGS) Makefile.bak *~ #*# core
32
 
33
clean:  tidy
34
	@$(RM) $(RMFLAGS) $(OBJS) *.o core *.out *.so *.dylib
35
 
36
spotless: clean
37
	@$(RM) $(RMFLAGS) $(PROGRAM) fake core
38
 
39
wipe: spotless
40
	@$(RM) $(RMFLAGS) $(PROGRAM) fake core $(LIBRARY)
41
 
42
# DO NOT DELETE THIS LINE -- make depend depends on it.