| 1 |
SHELL=/bin/sh |
| 2 |
|
| 3 |
include $(HOME_LORENE)/local_settings # defines which compiler,... |
| 4 |
df = $(DEPDIR)/$(*F) |
| 5 |
|
| 6 |
include List_obj # defines OBJ as the list of object files |
| 7 |
|
| 8 |
LIB = $(HOME_LORENE)/Lib |
| 9 |
|
| 10 |
$(LIB)/date_mark : $(OBJ) |
| 11 |
ar -rv $(LIB)/liblorene_export.a $? |
| 12 |
$(RANLIB) $(LIB)/liblorene_export.a |
| 13 |
|
| 14 |
%.o: %.C |
| 15 |
@$(MAKEDEPEND); \ |
| 16 |
cp $(df).d $(df).P; \ |
| 17 |
sed -e 's/#.*//' -e 's/^[^:]*: *//' -e 's/ *\\$$//' \ |
| 18 |
-e '/^$$/ d' -e 's/$$/ :/' < $(df).d >> $(df).P; \ |
| 19 |
rm -f $(df).d |
| 20 |
$(CXX) -c $(CXXFLAGS) $(INC) $< |
| 21 |
|
| 22 |
-include $(OBJ:%.o=$(DEPDIR)/%.P) |