"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 # MakeFile
2 # xstress - xk0derz SMTP Stress Tester
3 #
4 # (c) Amit Singh, amit@xkoder.com
5 # http://xkoder.com
6 #
7 # This software and related files are licensed under GNU GPL version 2
8 # Please visit the following webpage for more details
9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10 # or read the accopanying LICENSE file.
11 #
12 # View the README file for usage directions
13 # and help of editing the configuration file
14 #
15
16 OBJ_DIR=./obj
17 SRC_DIR=./src
18 INCLUDE_DIR=./include
19 BIN_DIR=./bin
20
21 OBJS=$(OBJ_DIR)/xstress.o $(OBJ_DIR)/sendmail.o \
22 $(OBJ_DIR)/config.o \
23 $(OBJ_DIR)/thread.o \
24 $(OBJ_DIR)/logger.o \
25 $(OBJ_DIR)/userinterface.o
26
27 SRC=$(addsuffix .cc, $(basename $(subst $(OBJ_DIR),$(SRC_DIR),$(OBJS))))
28
29 B64_SRC=$(SRC_DIR)/b64.c
30 B64_OUT=$(BIN_DIR)/base64
31
32 PROG=$(BIN_DIR)/xstress
33
34 GPP=g++
35 GCC=gcc
36 LD=ld
37
38
39 .PHONY: all
40 .PHONY: clean
41
42 all: $(OBJS) $(B64_OUT)
43 $(GPP) -o $(PROG) $(OBJS)
44 cp -i xstress.conf $(BIN_DIR)
45
46 $(OBJS):
47 $(GPP) -c $(SRC) -I $(INCLUDE_DIR)
48 mv *.o $(OBJ_DIR)
49
50 $(B64_OUT):
51 $(GCC) $(B64_SRC) -o $(B64_OUT)
52
53 clean:
54 rm -f *.o
55 rm -f $(OBJS)
56 rm -f $(PROG)
57 rm -f $(B64_OUT)
58
59 install:
60 cp xstress /usr/local/bin
61
62 uninstall:
63 rm -i /usr/local/bin/xstress