mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 16:19:20 +02:00
30 lines
359 B
Makefile
30 lines
359 B
Makefile
CC = gcc
|
|
OUT = dnstun
|
|
OBJS = dnstun.o tun.o dns.o
|
|
|
|
OS = `uname | tr "a-z" "A-Z"`
|
|
|
|
LDFLAGS =
|
|
CFLAGS = -c -g -Wall -D$(OS)
|
|
|
|
all: stateos $(OUT)
|
|
|
|
stateos:
|
|
@echo OS is $(OS)
|
|
|
|
$(OUT): $(OBJS)
|
|
@$(CC) $(OBJS) -o $(OUT) $(LDFLAGS)
|
|
|
|
.c.o:
|
|
@echo Compile $@
|
|
@$(CC) $(CFLAGS) $< -o $@
|
|
|
|
clean:
|
|
rm -f $(OUT)
|
|
rm -f *~
|
|
rm -f *.o
|
|
rm -f *.core
|
|
|
|
run: $(OUT)
|
|
./$(OUT)
|