mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Updates
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@170 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
507e54928e
commit
7c0e7d3f33
1 changed files with 25 additions and 15 deletions
40
Makefile
40
Makefile
|
|
@ -4,25 +4,33 @@
|
|||
|
||||
CC ?= cc
|
||||
CFLAGS ?= -Wall -O2 -ggdb
|
||||
CFLAGS += -DHAVE_GETOPT_LONG # Comment on non-gnu systems
|
||||
CFLAGS += -DUSE_SSL # Comment if you don't have/want ssl
|
||||
# Most systems
|
||||
CFLAGS += -DSETPROCTITLE -DSPT_TYPE=2
|
||||
REV = $(shell ./getrev.sh)
|
||||
CFLAGS += -DREV=$(REV)
|
||||
|
||||
# Testing new flags
|
||||
CFLAGS += -DSO_REUSEPORT # Comment if you don't have this flag
|
||||
OPTFLAGS = -DREV=$(shell ./getrev.sh)
|
||||
|
||||
# Comment on non-gnu systems
|
||||
OPTFLAGS += -DHAVE_GETOPT_LONG
|
||||
|
||||
# Comment if you don't have/want ssl
|
||||
OPTFLAGS += -DUSE_SSL
|
||||
|
||||
# Most systems
|
||||
OPTFLAGS += -DSETPROCTITLE -DSPT_TYPE=2
|
||||
|
||||
# Comment if you don't have this flag
|
||||
OPTFLAGS += -DSO_REUSEPORT
|
||||
|
||||
# System dependant blocks... if your system is listed below, uncomment
|
||||
# the relevant lines
|
||||
|
||||
# OpenBSD
|
||||
#CFLAGS += -DHAVE_SYS_PSTAT_H
|
||||
#OPTFLAGS += -DHAVE_SYS_PSTAT_H
|
||||
|
||||
# DARWIN
|
||||
#CFLAGS += -DDARWIN
|
||||
#OPTFLAGS += -DDARWIN
|
||||
|
||||
# CYGWIN
|
||||
#CFLAGS += -DCYGWIN
|
||||
#OPTFLAGS += -DCYGWIN
|
||||
|
||||
# SOLARIS
|
||||
#LDFLAGS += -lsocket -lnsl
|
||||
#LDFLAGS += -L/usr/local/ssl/lib # Path to your SSL lib dir
|
||||
|
|
@ -61,12 +69,14 @@ OBJ = proxytunnel.o \
|
|||
ptstream.o
|
||||
|
||||
proxytunnel: $(OBJ)
|
||||
$(CC) -o $(PROGNAME) $(CFLAGS) $(OBJ) $(LDFLAGS)
|
||||
$(CC) -o $(PROGNAME) $(CFLAGS) $(OPTFLAGS) $(OBJ) $(LDFLAGS)
|
||||
|
||||
clean:
|
||||
clean:
|
||||
@rm -f $(PROGNAME) $(OBJ)
|
||||
|
||||
install:
|
||||
install -Dp -m0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
|
||||
install -Dp -m0644 $(PROGNAME).1 $(DESTDIR)$(MANDIR)/man1/$(PROGNAME).1
|
||||
install -Dp -m0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
|
||||
install -Dp -m0644 $(PROGNAME).1 $(DESTDIR)$(MANDIR)/man1/$(PROGNAME).1
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) $(OPTFLAGS) -c -o $@ $<
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue