-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 730 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 730 Bytes
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
CC = gcc
LIBS = -lcrypto -lssl
WARNS = -Wall -Wextra -pedantic -Werror -Wno-unused-parameter
CFLAGS := $(WARNS) $(LIBS) -O3 $(CFLAGS)
TARGS = tripcode sectrip tripfind secfind tripfind-regex secfind-regex
ifdef NO_SJIS
TRIPFLAGS = $(CFLAGS)
else
TRIPFLAGS = $(CFLAGS) -DSJIS_CONVERT
endif
all: $(TARGS)
tripcode: tripcode.c
$(CC) -o $@ $(TRIPFLAGS) $<
sectrip: tripcode.c salt.h
$(CC) -o $@ $(CFLAGS) -DSECURE_TRIP $<
tripfind: tripfind.c
$(CC) -o $@ $(CFLAGS) $<
secfind: tripfind.c salt.h
$(CC) -o $@ $(CFLAGS) -DSECURE_TRIP $<
tripfind-regex: tripfind.c
$(CC) -o $@ $(CFLAGS) -DUSE_REGEX $<
secfind-regex: tripfind.c salt.h
$(CC) -o $@ $(CFLAGS) -DUSE_REGEX -DSECURE_TRIP $<
.PHONY: clean
clean:
rm -f $(TARGS)