head	1.1;
access;
symbols
	RELEASE_8_3_0:1.1
	RELEASE_9_0_0:1.1
	RELEASE_7_4_0:1.1
	RELEASE_8_2_0:1.1
	RELEASE_6_EOL:1.1
	RELEASE_8_1_0:1.1
	RELEASE_7_3_0:1.1
	RELEASE_8_0_0:1.1
	RELEASE_7_2_0:1.1
	RELEASE_7_1_0:1.1
	RELEASE_6_4_0:1.1
	RELEASE_5_EOL:1.1
	RELEASE_7_0_0:1.1
	RELEASE_6_3_0:1.1
	PRE_XORG_7:1.1
	RELEASE_4_EOL:1.1
	RELEASE_6_2_0:1.1
	RELEASE_6_1_0:1.1
	RELEASE_5_5_0:1.1
	RELEASE_6_0_0:1.1
	RELEASE_5_4_0:1.1
	RELEASE_4_11_0:1.1
	RELEASE_5_3_0:1.1
	RELEASE_4_10_0:1.1
	RELEASE_5_2_1:1.1
	RELEASE_5_2_0:1.1
	RELEASE_4_9_0:1.1
	RELEASE_5_1_0:1.1
	RELEASE_4_8_0:1.1
	RELEASE_5_0_0:1.1;
locks; strict;
comment	@# @;


1.1
date	2002.10.21.00.41.02;	author kris;	state Exp;
branches;
next	;


desc
@@


1.1
log
@Fix build on -current (#include <stdlib.h> for exit() prototype) and
respect CC and CFLAGS
@
text
@--- 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:
@
