iodine/Makefile

30 lines
353 B
Makefile
Raw Normal View History

2006-06-05 12:41:08 +00:00
CC = gcc
OUT = dnstun
OBJS = dnstun.o tun.o
2006-06-05 12:58:50 +00:00
OS = `uname | tr "a-z" "A-Z"`
2006-06-05 12:41:08 +00:00
LDFLAGS =
2006-06-05 12:58:50 +00:00
CFLAGS = -c -g -Wall -D$(OS)
all: stateos $(OUT)
stateos:
2006-06-05 13:16:24 +00:00
@echo OS is $(OS)
2006-06-05 12:41:08 +00:00
$(OUT): $(OBJS)
2006-06-05 13:16:24 +00:00
@$(CC) $(OBJS) -o $(OUT) $(LDFLAGS)
2006-06-05 12:41:08 +00:00
2006-06-05 13:16:24 +00:00
.c.o:
@echo Compile $@
@$(CC) $(CFLAGS) $< -o $@
2006-06-05 12:41:08 +00:00
clean:
rm -f $(OUT)
rm -f *~
rm -f *.o
rm -f *.core
run: $(OUT)
./$(OUT)