forked from winkj/httpup
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.orig
43 lines (33 loc) · 1.04 KB
/
Makefile.orig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
all: httpup
############################################################################
###
## Configuration
#
NAME=httpup
VERSION="0.4.0h"
CXX=g++
CXXFLAGS=-Wall -ansi -pedantic -DMF_VERSION='${VERSION}'
LDFLAGS=-lcurl
objects=httpupargparser.o argparser.o main.o httpup.o \
fileutils.o md5.o configparser.o
httpupargparser.o: httpupargparser.cpp httpupargparser.h
argparser.o: argparser.cpp argparser.h
main.o: main.cpp
httpup.o: httpup.cpp httpup.h
fileutils.o: fileutils.cpp fileutils.h
md5.o: md5.cpp md5.h
configparser.o: configparser.cpp configparser.h
############################################################################
$(objects): %.o: %.cpp
$(CXX) -c $(CXXFLAGS) $< -o $@
httpup: $(objects) *.cpp *.h
g++ -o httpup $(objects) $(LDFLAGS)
clean:
rm -f httpup $(objects)
dist:
rm -rf ${NAME}-${VERSION}
mkdir ${NAME}-${VERSION}
cp *.cpp *.h Makefile AUTHORS COPYING ChangeLog README TODO *.8 \
httpup-repgen* httpup.conf* ${NAME}-${VERSION}
tar cvzf ${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}
rm -rf ${NAME}-${VERSION}