freebsd-ports/net/cryptcat/files/patch-Makefile
Emanuel Haupt bf51c6f124 - Update from 20031202 to 1.2.1
- Bump PORTEPOCH
- Update MASTER_SITE and WWW (project moved to sourceforge)
- Remove two patches that contained CR/LF's
- Add two patches (invoked by CR/LF problematic)
- Pass maintainership to submitter

PR:		88134
Submitted by:	Gabor Kovesdan <gabor.kovesdan@t-hosting.hu>
2005-10-30 13:21:29 +00:00

44 lines
1.3 KiB
Text

--- Makefile.orig Tue May 22 21:06:42 2001
+++ Makefile Fri Oct 28 15:07:46 2005
@@ -10,13 +10,11 @@
# debugging
# DFLAGS = -DTEST -DDEBUG
DFLAGS = -DGAPING_SECURITY_HOLE
-CFLAGS = -O
XFLAGS = # xtra cflags, set by systype targets
XLIBS = # xtra libs if necessary?
# -Bstatic for sunos, -static for gcc, etc. You want this, trust me.
STATIC =
-CC = cc $(CFLAGS)
-LD = $(CC) -s # linker; defaults to stripped executables
+LD = $(CXX) -s # linker; defaults to stripped executables
o = o # object extension
ALL = cryptcat
@@ -28,8 +26,11 @@
### HARD TARGETS
-cryptcat: netcat.c farm9crypt.o twofish2.o
- $(LD) $(DFLAGS) $(XFLAGS) $(STATIC) -o cryptcat netcat.c farm9crypt.o twofish2.o $(XLIBS)
+netcat.o:
+ $(CC) $(CFLAGS) -c netcat.c
+
+cryptcat: netcat.o farm9crypt.o twofish2.o
+ $(LD) $(CFLAGS) $(DFLAGS) $(XFLAGS) $(STATIC) -o cryptcat netcat.o farm9crypt.o twofish2.o $(XLIBS)
nc-dos:
@echo "DOS?! Maybe someday, but not now"
@@ -113,10 +114,10 @@
make -e $(ALL) $(MFLAGS) XFLAGS='-DNEXT' STATIC=-Bstatic
farm9crypt.o: farm9crypt.cc farm9crypt.h
- ${CC} -c farm9crypt.cc
+ ${CC} ${CFLAGS} -c farm9crypt.cc
twofish2.o: twofish2.cc twofish2.h
- ${CC} -c twofish2.cc
+ ${CC} ${CFLAGS} -c twofish2.cc
# start with this for a new architecture, and see what breaks.
generic: