-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
30 lines (23 loc) · 820 Bytes
/
Makefile
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
# charemap - play with substitution ciphers
# See LICENSE file for copyright and license details.
include config.mk
OBJ = charemap.o decrypt.o utils.o
SRC = charemap.c decrypt.c utils.c charemap.h decrypt.h utils.h
${PROJECT}: options ${OBJ}
$(CC) ${CFLAGS} ${CPPFLAGS} -o $(PROJECT) -lm $(OBJ) ${LDLIBS}
options:
@echo charemap build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "CC = ${CC}"
@echo
clean:
@echo cleaning
@rm -f charemap charemap-${VERSION}.tar.gz *.txt *.o *~
dist: clean
@echo creating dist tarball
mkdir -p charemap-${VERSION}
@cp -R README LICENSE Makefile config.mk languages samples ciphers ${SRC} charemap-${VERSION}
@tar --exclude=".svn" -cf charemap-${VERSION}.tar charemap-${VERSION}
@gzip charemap-${VERSION}.tar
rm -rf charemap-${VERSION}
.PHONY: options clean