mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 06:41:26 +00:00
29 lines
368 B
Makefile
29 lines
368 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)
|
|
@echo LD $@
|
|
@$(CC) $(OBJS) -o $(OUT) $(LDFLAGS)
|
|
|
|
.c.o:
|
|
@echo CC $<
|
|
@$(CC) $(CFLAGS) $< -o $@
|
|
|
|
clean:
|
|
@echo "Cleaning..."
|
|
@rm -f $(OUT) *~ *.o *.core
|
|
|
|
run: $(OUT)
|
|
./$(OUT)
|