File: Makefile_lib

package info (click to toggle)
lorene 0.0.0~cvs20161116%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 26,472 kB
  • sloc: cpp: 212,946; fortran: 21,645; makefile: 1,750; sh: 4
file content (22 lines) | stat: -rw-r--r-- 540 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SHELL=/bin/sh

include $(HOME_LORENE)/local_settings		  # defines which compiler,...
df = $(DEPDIR)/$(*F)

include List_obj 		# defines OBJ as the list of object files

LIB	  = $(HOME_LORENE)/Lib

$(LIB)/date_mark : $(OBJ)
	ar -rv $(LIB)/liblorene_export.a  $?
	$(RANLIB) $(LIB)/liblorene_export.a

%.o: %.C
	@$(MAKEDEPEND); \
	cp $(df).d $(df).P; \
	sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \
	-e '/^$$/ d' -e 's/$$/ :/' < $(df).d >> $(df).P; \
	rm -f $(df).d
	$(CXX) -c $(CXXFLAGS) $(INC) $<

-include $(OBJ:%.o=$(DEPDIR)/%.P)