2005-01-19 20:16:09 +03:00
|
|
|
# ***** BEGIN LICENSE BLOCK *****
|
|
|
|
# Version: MPL 1.1
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Original Code is SniffURI.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Erik van der Poel <erik@vanderpoel.org>.
|
|
|
|
# Portions created by the Initial Developer are Copyright (C) 1998-2005
|
|
|
|
# the Initial Developer. All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Contributor(s):
|
|
|
|
# Bruce Robson <bns_robson@hotmail.com>
|
|
|
|
#
|
|
|
|
# ***** END LICENSE BLOCK *****
|
|
|
|
|
|
|
|
# Linux, Unix or Windows with Cygwin (type "./configure; make")
|
|
|
|
CFLAGS = -Wall -pedantic -D_REENTRANT $(O_or_g)
|
|
|
|
EXE =
|
|
|
|
LIBS = @LIBS@
|
|
|
|
OBJ = o
|
|
|
|
RM = rm -f
|
|
|
|
|
|
|
|
# Windows without Cygwin (type "nmake")
|
|
|
|
#Windows#CFLAGS = /nologo /DWINDOWS=1 /D_WIN32_WINNT=0x0400
|
|
|
|
#Windows#EXE = .exe
|
|
|
|
#Windows#LIBS = wsock32.lib
|
|
|
|
#Windows#OBJ = obj
|
|
|
|
#Windows#RM = del
|
|
|
|
|
|
|
|
#O_or_g = -g
|
|
|
|
O_or_g = -O
|
|
|
|
|
|
|
|
PURIFY =
|
|
|
|
#PURIFY = purify
|
|
|
|
#PURIFY = purify -windows=no
|
|
|
|
|
|
|
|
OBJS = \
|
|
|
|
addurl.$(OBJ) \
|
2005-01-21 00:09:40 +03:00
|
|
|
app.$(OBJ) \
|
2005-01-25 11:22:29 +03:00
|
|
|
buf.$(OBJ) \
|
2005-01-19 20:16:09 +03:00
|
|
|
file.$(OBJ) \
|
|
|
|
hash.$(OBJ) \
|
|
|
|
html.$(OBJ) \
|
|
|
|
http.$(OBJ) \
|
|
|
|
mime.$(OBJ) \
|
|
|
|
net.$(OBJ) \
|
|
|
|
thread.$(OBJ) \
|
|
|
|
url.$(OBJ) \
|
|
|
|
utils.$(OBJ) \
|
|
|
|
view.$(OBJ)
|
|
|
|
|
|
|
|
EXES = \
|
|
|
|
grab$(EXE) \
|
2005-01-21 01:23:49 +03:00
|
|
|
httpd$(EXE) \
|
2005-01-19 20:16:09 +03:00
|
|
|
link$(EXE) \
|
|
|
|
robot$(EXE) \
|
|
|
|
urltest$(EXE) \
|
|
|
|
view.cgi$(EXE)
|
|
|
|
|
|
|
|
#all: dnstest$(EXE)
|
|
|
|
#all: ftp$(EXE)
|
|
|
|
#all: grab$(EXE)
|
2005-01-21 01:23:49 +03:00
|
|
|
#all: httpd$(EXE)
|
2005-01-19 20:16:09 +03:00
|
|
|
#all: link$(EXE)
|
|
|
|
#all: pop$(EXE)
|
|
|
|
#all: proxy$(EXE)
|
|
|
|
#all: robot$(EXE)
|
|
|
|
#all: urltest$(EXE)
|
|
|
|
#all: view.cgi$(EXE)
|
|
|
|
all: $(EXES)
|
|
|
|
|
|
|
|
dnstest$(EXE): dns.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) dns.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) dns.c $(OBJS) $(LIBS) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
|
|
|
ftp$(EXE): ftp.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) ftp.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) ftp.c $(OBJS) $(LIBS) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
|
|
|
grab$(EXE): grab.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) grab.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) grab.c $(OBJS) $(LIBS) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
2005-01-21 01:23:49 +03:00
|
|
|
httpd$(EXE): httpd.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) httpd.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) httpd.c $(OBJS) $(LIBS) -o $@
|
2005-01-21 01:23:49 +03:00
|
|
|
|
2005-01-19 20:16:09 +03:00
|
|
|
link$(EXE): link.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) link.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) link.c $(OBJS) $(LIBS) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
|
|
|
pop$(EXE): pop.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) pop.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) pop.c $(OBJS) $(LIBS) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
|
|
|
proxy$(EXE): proxy.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) proxy.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) proxy.c $(OBJS) $(LIBS) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
|
|
|
robot$(EXE): robot.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) robot.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) robot.c $(OBJS) $(LIBS) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
|
|
|
urltest$(EXE): urltest.c url.$(OBJ) utils.$(OBJ)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) urltest.c '$$(OBJS)' -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) urltest.c url.$(OBJ) utils.$(OBJ) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
|
|
|
view.cgi$(EXE): cgiview.c $(OBJS)
|
2005-01-21 22:01:20 +03:00
|
|
|
@echo $(PURIFY) $(CC) $(CFLAGS) cgiview.c '$$(OBJS)' $(LIBS) -o $@
|
|
|
|
@$(PURIFY) $(CC) $(CFLAGS) cgiview.c $(OBJS) $(LIBS) -o $@
|
2005-01-19 20:16:09 +03:00
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *.$(OBJ) $(EXES)
|
|
|
|
|
|
|
|
win:
|
|
|
|
make -f Makefile.in clean
|
|
|
|
sed -e 's/^#Windows#//' Makefile.in > Makefile
|
|
|
|
tar cf - * | gzip > .ws.tgz
|
|
|
|
smbclient //10.1.1.3/ws -N -c 'put .ws.tgz'
|
|
|
|
rm .ws.tgz
|