aboutsummaryrefslogtreecommitdiff
path: root/math/cocoalib/files/patch-src_AlgebraicCore_TmpHilbertDir_Makefile
blob: 154f63697883bc9bd2b7b2c4a54577101ca94b79 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
--- src/AlgebraicCore/TmpHilbertDir/Makefile.orig	2020-03-06 20:35:15 UTC
+++ src/AlgebraicCore/TmpHilbertDir/Makefile
@@ -1,72 +1,13 @@
 # Makefile for CoCoALib/src/AlgebraicCore/TmpHilbertDir/ directory
 
-COCOA_ROOT=../../..
-include $(COCOA_ROOT)/configuration/autoconf.mk
-CWD=src/AlgebraicCore/TmpHilbertDir/
-DEPEND_FILE=Makefile_dependencies
-
 SRCS=AnnaUtils.C IVectors.C eterms.C poincare.C rum.C unipoly.C TermList.C \
      toric.C \
      TmpPoincareCPP.C
 
-OBJS=$(SRCS:.C=.o)
+all: ${SRCS:.C=.o}
+	ar rcs ../libcocoa.a ${.ALLSRC}
 
-# Default target, must be the first one!
-.PHONY: default
-default: $(OBJS)
-	ar $(ARFLAGS) $(COCOA_LIB) $(OBJS)
+.SUFFIXES:.o
 
-.PHONY: clean clean-local
-clean: clean-local
-	@echo "Cleaned CoCoALib/$(CWD)"
-
-clean-local:
-	@/bin/rm -f $(OBJS)  "$(DEPEND_FILE).old"  "$(DEPEND_FILE).new"  ./*~  ./.*~  ./.\#*
-	@/bin/rm -rf  ./*.dSYM
-
-
-.PHONY: veryclean
-veryclean: clean-local
-	@true >| "$(DEPEND_FILE)" # Empties $(DEPEND_FILE)
-	@echo "Verycleaned CoCoALib/$(CWD)"
-
-
-# This target checks whether we should really build DEPEND_FILE
-.PHONY: dependencies
-dependencies:
-	@if [ \! -s "$(DEPEND_FILE)" -o \! "$(DEPEND_FILE)" -nt "$(COCOA_HDR)" ] ; \
-	then \
-	  $(MAKE) create-dependencies; \
-	fi
-
-# This is the target which really does rebuild the DEPEND_FILE
-.PHONY: create-dependencies
-create-dependencies:
-	@/bin/rm -rf $(DEPEND_FILE).new
-	@echo "Rebuilding dependencies in <CoCoALib>/$(CWD)"
-	@echo "##################################################################"   >> $(DEPEND_FILE).new
-	@echo "#        ---  CoCoALib version $(COCOALIB_VERSION)  ---"              >> $(DEPEND_FILE).new
-	@echo "# Dependencies for directory $(CWD)"                                  >> $(DEPEND_FILE).new
-	@echo "# DO NOT EDIT: this file is automatically generated; to regenerate"   >> $(DEPEND_FILE).new
-	@echo "# run \`make dependencies' in the CoCoALib root directory."           >> $(DEPEND_FILE).new
-	@echo "##################################################################"   >> $(DEPEND_FILE).new
-	@echo                                                                        >> $(DEPEND_FILE).new
-	for srcfile in $(SRCS); \
-	do \
-	  objfile=`basename $$srcfile .c`.o; \
-	  $(CXX) $(INCLUDE) -I. -MM "$$srcfile" -MQ "$$objfile" >> $(DEPEND_FILE).new; \
-	  echo >> $(DEPEND_FILE).new; \
-	done
-	@if [ -s "$(DEPEND_FILE)" ] ; \
-	then \
-	  /bin/mv -f "$(DEPEND_FILE)" "$(DEPEND_FILE).old" ; \
-	fi
-	@/bin/mv $(DEPEND_FILE).new  $(DEPEND_FILE)
-
-
-$(DEPEND_FILE):
-	@touch "$(DEPEND_FILE)"
-
-include $(DEPEND_FILE)
-
-$(OBJS): $(COCOA_ROOT)/configuration/autoconf.mk
+.C.o:
+	${CXX} ${CXXFLAGS} -o ${.TARGET} -c ${.IMPSRC}