aboutsummaryrefslogtreecommitdiff
path: root/semestr-4/sieci/pracownia1/makefile
blob: 3c48d745bc873ee22ce49c10e76d0cd2efe860b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC=gcc
CFLAGS=-std=gnu17 -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