aboutsummaryrefslogtreecommitdiff
path: root/Semestr 4/sieci/pracownia1/makefile
blob: 5da00f40e1e41515155d96345fd67883d3b6b1b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC=gcc
CFLAGS=-std=c17 -D_GNU_SOURCE -O2 -Wall -Wextra
TARGET=traceroute

all: $(TARGET)

$(TARGET): $(TARGET).o
	$(CC) -o $(TARGET) $(TARGET).o 


$(TARGET).o: $(TARGET).c
	$(CC) $(CFLAGS) -c $(TARGET).c

distclean:
	$(RM) $(TARGET)
	$(RM) $(TARGET).o

clean:
	$(RM) $(TARGET).o