iodine/Makefile

22 lines
278 B
Makefile
Raw Normal View History

2006-06-05 12:41:08 +00:00
CC = gcc
OUT = dnstun
OBJS = dnstun.o tun.o
LDFLAGS =
2006-06-05 12:55:30 +00:00
CFLAGS = -c -g -Wall -D`uname | tr "a-z" "A-Z"`
2006-06-05 12:41:08 +00:00
$(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)