Merci à Claude. Vraiment.
This commit is contained in:
commit
eaada1b6c4
4 changed files with 129 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -std=c11 -O2
|
||||
TARGET = ifaddr
|
||||
SRC = getifaddr.c
|
||||
|
||||
.PHONY: all clean install
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(SRC)
|
||||
$(CC) $(CFLAGS) -o $@ $^
|
||||
|
||||
install: $(TARGET)
|
||||
install -m 755 $(TARGET) /usr/local/bin/$(TARGET)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
Loading…
Add table
Add a link
Reference in a new issue