mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-08 09:23:17 +00:00
22 lines
252 B
Makefile
22 lines
252 B
Makefile
|
CC = gcc
|
||
|
OUT = dnstun
|
||
|
OBJS = dnstun.o tun.o
|
||
|
|
||
|
LDFLAGS =
|
||
|
CFLAGS = -c -g -Wall
|
||
|
|
||
|
$(OUT): $(OBJS)
|
||
|
$(CC) $(OBJS) -o $(OUT) $(LDFLAGS)
|
||
|
|
||
|
%.o : %.c %.h
|
||
|
$(CC) $(CFLAGS) $< -o $@
|
||
|
|
||
|
clean:
|
||
|
rm -f $(OUT)
|
||
|
rm -f *~
|
||
|
rm -f *.o
|
||
|
rm -f *.core
|
||
|
|
||
|
run: $(OUT)
|
||
|
./$(OUT)
|