summaryrefslogtreecommitdiff
blob: 3bf96ed088ce95c598e181cbe20bdd1783611e97 (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
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,5 @@
 ALL: default
 
-# GPROFFLAG = -pg
- GPROFFLAG = -g
 
 PREFIX?=/usr/local
 
@@ -77,16 +75,13 @@
 
 SHELL       = /bin/sh
 #ARCH        = LINUX
-CC          = gcc
 CLINKER     = $(CC)
-CXX         = g++
 CCLINKER    = $(CXX)
-#OPTFLAGS    = -O2 -DGMPRATIONAL -DNDEBUG
-OPTFLAGS    = -O2 -DGMPRATIONAL -Wuninitialized
 
-CFLAGS	  = $(OPTFLAGS) $(GPROFFLAG) $(ADDITIONALINCLUDEOPTIONS) #-pedantic
-CCFLAGS	  = $(CFLAGS)
-FFLAGS	  = $(OPTFLAGS)
+
+CFLAGS      += $(GPROFFLAG) $(ADDITIONALINCLUDEOPTIONS) -Wuninitialized
+CXXFLAGS    += $(GPROFFLAG) $(ADDITIONALINCLUDEOPTIONS) -Wuninitialized
+CPPFLAGS    += -DGMPRATIONAL -DNDEBUG
 
 CATSOBJECTS =	$(GCATSPATH)lp_cdd.o \
 		$(SOPLEX_OBJECTS) \
@@ -317,7 +312,7 @@
 default: $(OBJECTS) $(ADDITIONALOBJECTS) $(EXECS)
 
 $(MAIN): $(OBJECTS)
-	$(CCLINKER) $(OBJECTS) $(ADDITIONALLINKOPTIONS) $(GPROFFLAG) -o $(MAIN)
+	$(CCLINKER) $(LDFLAGS) $(OBJECTS) $(ADDITIONALLINKOPTIONS) $(GPROFFLAG) -o $(MAIN)
 
 release:
 	rm -f -r $(RELEASEDIR)/*
@@ -430,14 +425,6 @@
 	cp gfanlib.h gfanlib/
 	cp gfanlib_* gfanlib/
 	tar zcf -  gfanlib > gfanlib.tar.gz
-.c.o:
-	$(CC) $(CFLAGS) -c $<
-.cc.o:
-	$(CXX) -c $<
-.cpp.o:
-	$(CXX) $(CFLAGS) -c $<
-.C.o:
-	$(CXX) -c $<
 # wget http://ftp.sunet.se/pub/gnu/gmp/gmp-4.2.2.tar.gz
 # tar -xzvf gmp-4.2.2.tar.gz
 # cd gmp-4.2.2