1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-22 04:56:07 +03:00
iodine/Makefile
2006-06-11 12:26:09 +00:00

33 lines
515 B
Makefile

CC = gcc
DNS = iodine
DNSOBJS = dnstun.o tun.o dns.o read.o
DNSD = iodined
DNSDOBJS = dnstund.o tun.o dnsd.o read.o
OS = `uname | tr "a-z" "A-Z"`
LDFLAGS = -lz
CFLAGS = -c -g -Wall -D$(OS)
all: stateos $(DNS) $(DNSD)
stateos:
@echo OS is $(OS)
$(DNS): $(DNSOBJS)
@echo LD $@
@$(CC) $(DNSOBJS) -o $(DNS) $(LDFLAGS)
$(DNSD): $(DNSDOBJS)
@echo LD $@
@$(CC) $(DNSDOBJS) -o $(DNSD) $(LDFLAGS)
.c.o:
@echo CC $<
@$(CC) $(CFLAGS) $< -o $@
clean:
@echo "Cleaning..."
@rm -f $(DNS) $(DNSD) *~ *.o *.core