1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-22 13:06:06 +03:00
iodine/Makefile
Bjorn Andersson efe4b99e06 fancy pancy
2006-06-05 12:58:50 +00:00

29 lines
348 B
Makefile

CC = gcc
OUT = dnstun
OBJS = dnstun.o tun.o
OS = `uname | tr "a-z" "A-Z"`
LDFLAGS =
CFLAGS = -c -g -Wall -D$(OS)
all: stateos $(OUT)
stateos:
@echo Compiling for $(OS)
$(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)