1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-08 23:06:56 +00:00
freebsd-ports/net/sharity-light/files/patch-ad
Dmitrij Tejblum e2800035bd Replace rumba 0.6a with Sharity-Light 1.0.
Also, make the build obey local settings for CC. This is
Submitted by:	Mikhail Teterin <mi@video-collage.com>
1998-07-06 19:32:07 +00:00

53 lines
1.4 KiB
Plaintext

--- Makefile.orig Wed Jun 3 15:19:51 1998
+++ Makefile Wed Jun 3 15:20:59 1998
@@ -13,12 +13,12 @@
##############################################################################
# For NEXTSTEP/OPENSTEP:
-CFLAGS = -Wall -O2 -traditional-cpp -g
+#CFLAGS = -Wall -O2 -traditional-cpp -g
INCLUDES = $(MYINCL) $(INCL)
# put your architecture here:
-ARCH = -arch i386
-THE_CC = cc
-RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
+#ARCH = -arch i386
+#THE_CC = cc
+#RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
# For Linux:
#CFLAGS = -Wall -O2 -g
@@ -26,10 +26,10 @@
#RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
# For FreeBSD
-#CFLAGS = -Wall -O2
-#INCLUDES = $(MYINCL) $(INCL)
-#THE_CC = cc
-#RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
+CFLAGS += -Wall
+INCLUDES = $(MYINCL) $(INCL)
+THE_CC := $(CC)
+RPC_WARNFLAGS = -Wno-unused -Wno-switch -Wno-uninitialized
# For NetBsd
#CFLAGS = -Wall -O2 -DNETBSD
@@ -67,7 +67,7 @@
OFILES = proc.o sock.o rumba.o psinode.o kernel.o smb_abstraction.o fo_nfs.o
.c.o:
- $(CC) $(CFLAGS) $(ARCH) -c -o $*.o $<
+ $(CC) $(CFLAGS) -c -o $*.o $<
all: $(NAME)
@@ -75,7 +75,7 @@
(cd nfs; $(MAKE) "CFLAGS=$(CFLAGS)" "CC=$(THE_CC)" "ARCH=$(ARCH)" "RPC_WARNFLAGS=$(RPC_WARNFLAGS)")
$(NAME): $(OFILES) nfs_dir
- $(CC) $(ARCH) -o $(NAME) $(OFILES) nfs/nfs.o $(LIBS)
+ $(CC) -o $(NAME) $(OFILES) nfs/nfs.o $(LIBS)
clean:
rm -f $(OFILES)