-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
33 lines (27 loc) · 835 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
31
32
33
# ===========================================================================
# Makefile
#
# Makefile for Interrogate
#
# Author: Carsten Maartmann-Moe <[email protected]>
# ===========================================================================
.SUFFIXES:
.SUFFIXES: .c .o .do
CC=gcc
CFLAGS=-Wall
LDFLAGS=
DEBUGFLAGS=-Wall -DDEBUG -g
LIBS=-lm
OBJS=interrogate.o stat.o rsa.o aes.o serpent.o twofish.o util.o virtmem.o
DBOBJS=interrogate.do stat.do rsa.do aes.do serpent.do twofish.do util.do virtmem.do
EXECNAME=interrogate
.c.do:; $(CC) -c -o $@ $(DEBUGFLAGS) $<
all: interrogate
interrogate: $(OBJS)
$(CC) $(CFLAGS) -o $(EXECNAME) $(OBJS) $(LIBS)
rm -f *.o *.do *.bak *.der
debug: $(DBOBJS)
$(CC) $(DEBUGFLAGS) -o $(EXECNAME) $(DBOBJS) $(LIBS)
rm -f *.o *.do *.bak *.der
clean:
rm -f *.o *.do *.bak *.der interrogate