-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
42 lines (21 loc) · 710 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
34
35
36
37
38
39
40
41
.PHONY: clean
CC= gcc
OBJECTS= objects
SPIDER= bin/spider
FLAGS= --std=gnu99
all: $(SPIDER)
$(SPIDER): file_tamper.o dir_tamper.o misc_routines.o evil_elf.o main.o
mv *.o objects
$(CC) $(OBJECTS)/file_tamper.o $(OBJECTS)/dir_tamper.o $(OBJECTS)/main.o $(OBJECTS)/misc_routines.o $(OBJECTS)/evil_elf.o -g -o $(SPIDER)
$(OBJECTS)/main.o: main.c
$(CC) -c $< -o -g $(OBJECTS)
$(OBJECTS)/file_tamper.o: file_tamper.c
$(CC) -c $< -o -g $(OBJECTS)
$(OBJECTS)/dir_tamper.o: dir_tamper.c
$(CC) -c $< -o -g $(OBJECTS)
$(OBJECTS)/misc_routines.o: misc_routines.c
$(CC) -c $< -o -g $(OBJECTS)
$(OBJECTS)/evil_elf.o: evil_elf.c
$(CC) -c $< -o -g $(OBJECTS)
clean:
rm $(SPIDER) $(OBJECTS)/*