summaryrefslogtreecommitdiff
blob: ae5177ffb5011a0afa7a6c981a4bbff5e27c31b2 (plain)
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
--- a/Makefile
+++ b/Makefile
@@ -1,24 +1,19 @@
 # Compilation flags
 #CC	    = cc
-CC	    = cc
-INCLUDE     = -I. 
+CPPFLAGS += -I.
 #LINCLUDE    = -lcurses -ltermcap -lm
-LINCLUDE    = -lm
-OPT_CFLAGS  = -O2 $(FLAGS) $(INCLUDE)
-#CFLAGS	    = -g $(FLAGS) $(INCLUDE)
-CFLAGS	    = -O2 $(FLAGS) $(INCLUDE)
+LDLIBS      = -lm
 
 # These are the user object files in the application
 SRCS        = surf.c io.c compute.c dual.c utils.c lp.c chull.c tessel_cases.c \
 	      tessel_patches.c tessel_convex.c tessel_concave.c tessel_torus.c 
 
 # obj files for sequential execution
-OBJS        = surf.o io.o compute.o dual.o utils.o lp.o chull.o tessel_cases.o \
+OBJS        = io.o compute.o dual.o utils.o lp.o chull.o tessel_cases.o \
 	      tessel_patches.o tessel_convex.o tessel_concave.o tessel_torus.o  
 
 # make objects
-surf: $(OBJS) Makefile 
-	$(CC) $(CFLAGS) $(OBJS) -o surf $(LINCLUDE)
+surf: $(OBJS)
 
 lint:
 	lint $(INCLUDE) $(SRCS)
@@ -29,80 +24,3 @@
 release:
 	tar -cvf surf.tar README *.[hc] Makefile
 	compress surf.tar
-
-.c.o: 
-	$(CC) $(CFLAGS) -c $*.c
-
-
-# make depend makes the proper include file dependencies.  You _could_ run
-# it on a sun4, but there's a bug in the SunOS version of sed that causes
-# the all-important "cat makedep | sed -e 's/\.o/.d4o/p'" etc. line to
-# not print the results to the stdout (but to keep pumping it through the
-# edits.  The 'p' flag effectively does nothing). To avoid this I have
-# replaced the 'p' flag by the 'w file' flag in sed.
-
-DEPEND = $(SRCS)
-
-depend: $(DEPEND)
-	@ echo making dependencies...
-	@ echo ' ' > makedep
-	@ makedepend $(INCLUDE) -f makedep $(DEPEND)
-	@ echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
-	@ echo '$$r makedep' >>eddep
-	@ echo 'w' >>eddep
-	@ cp Makefile Makefile.bak
-	@ ed - Makefile < eddep
-	@ rm eddep makedep 
-	@ echo '  ' >> Makefile
-	@ echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
-	@ echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
-	@ echo '# see make depend above' >> Makefile
-	@ echo 'done.'
-	@ echo '  ' >> Makefile
-
-# DO NOT DELETE THIS LINE -- make depend depends on it.
-  
- 
-# DO NOT DELETE THIS LINE -- make depend depends on it.
-
-surf.o: surf.h /usr/include/stdio.h /usr/include/math.h /usr/include/stdlib.h
-surf.o: /usr/include/sgidefs.h /usr/include/string.h /usr/include/sys/time.h
-surf.o: linalg.h
-io.o: surf.h /usr/include/stdio.h /usr/include/math.h /usr/include/stdlib.h
-io.o: /usr/include/sgidefs.h /usr/include/string.h /usr/include/sys/time.h
-io.o: linalg.h
-compute.o: surf.h /usr/include/stdio.h /usr/include/math.h
-compute.o: /usr/include/stdlib.h /usr/include/sgidefs.h /usr/include/string.h
-compute.o: /usr/include/sys/time.h linalg.h chull.h dual.h
-dual.o: surf.h /usr/include/stdio.h /usr/include/math.h /usr/include/stdlib.h
-dual.o: /usr/include/sgidefs.h /usr/include/string.h /usr/include/sys/time.h
-dual.o: linalg.h dual.h chull.h
-utils.o: surf.h /usr/include/stdio.h /usr/include/math.h
-utils.o: /usr/include/stdlib.h /usr/include/sgidefs.h /usr/include/string.h
-utils.o: /usr/include/sys/time.h linalg.h
-lp.o: surf.h /usr/include/stdio.h /usr/include/math.h /usr/include/stdlib.h
-lp.o: /usr/include/sgidefs.h /usr/include/string.h /usr/include/sys/time.h
-lp.o: linalg.h
-chull.o: surf.h /usr/include/stdio.h /usr/include/math.h
-chull.o: /usr/include/stdlib.h /usr/include/sgidefs.h /usr/include/string.h
-chull.o: /usr/include/sys/time.h linalg.h chull.h
-tessel_cases.o: surf.h /usr/include/stdio.h /usr/include/math.h
-tessel_cases.o: /usr/include/stdlib.h /usr/include/sgidefs.h
-tessel_cases.o: /usr/include/string.h /usr/include/sys/time.h linalg.h dual.h
-tessel_patches.o: surf.h /usr/include/stdio.h /usr/include/math.h
-tessel_patches.o: /usr/include/stdlib.h /usr/include/sgidefs.h
-tessel_patches.o: /usr/include/string.h /usr/include/sys/time.h linalg.h
-tessel_convex.o: surf.h /usr/include/stdio.h /usr/include/math.h
-tessel_convex.o: /usr/include/stdlib.h /usr/include/sgidefs.h
-tessel_convex.o: /usr/include/string.h /usr/include/sys/time.h linalg.h
-tessel_concave.o: surf.h /usr/include/stdio.h /usr/include/math.h
-tessel_concave.o: /usr/include/stdlib.h /usr/include/sgidefs.h
-tessel_concave.o: /usr/include/string.h /usr/include/sys/time.h linalg.h
-tessel_torus.o: surf.h /usr/include/stdio.h /usr/include/math.h
-tessel_torus.o: /usr/include/stdlib.h /usr/include/sgidefs.h
-tessel_torus.o: /usr/include/string.h /usr/include/sys/time.h linalg.h
-  
-# DEPENDENCIES MUST END AT END OF FILE
-# IF YOU PUT STUFF HERE IT WILL GO AWAY
-# see make depend above
-