summaryrefslogtreecommitdiffstats
path: root/www/dhttpd/files/patch-Makefile
blob: 6348454269739370e495f2f301225a52f463485c (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
--- src/Makefile.orig	Mon Mar  3 16:35:53 1997
+++ src/Makefile	Sun Oct 20 17:42:06 2002
@@ -1,22 +1,21 @@
 # if compiling for SunOS, you need to add -lsocket to the LIBS variable
 
 SH	= /bin/sh
-CC	= gcc
+CXX	?= c++
 MAKEFILE= Makefile
-CFLAGS	= -O2 --pipe
 LIBS	=
 
 OBJECTS = main.o socket.o httpsock.o
 
 .cc.o:
-	$(CC) $(CFLAGS) -c -o $*.o $<
+	$(CXX) $(CXXFLAGS) -c -o $*.o $<
 
 all:	compile dhttpd
 
 compile: $(OBJECTS)
 
 dhttpd: $(OBJECTS)
-	$(CC) -o dhttpd $(OBJECTS) $(LIBS)
+	$(CXX) -o dhttpd $(OBJECTS) $(LIBS)
 	strip dhttpd
 
 clean:
OpenPOWER on IntegriCloud