diff --git a/Makefile b/Makefile index cef0823..a374bc4 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,26 @@ CC = gcc -DNS = iodine -DNSOBJS = dnstun.o tun.o dns.o read.o -DNSD = iodined -DNSDOBJS = dnstund.o tun.o dnsd.o read.o +CLIENT = iodine +CLIENTOBJS = iodine.o tun.o dns.o read.o +SERVER = iodined +SERVEROBJS = iodined.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) +all: stateos $(CLIENT) $(SERVER) stateos: @echo OS is $(OS) -$(DNS): $(DNSOBJS) +$(CLIENT): $(CLIENTOBJS) @echo LD $@ - @$(CC) $(DNSOBJS) -o $(DNS) $(LDFLAGS) + @$(CC) $(CLIENTOBJS) -o $(CLIENT) $(LDFLAGS) -$(DNSD): $(DNSDOBJS) +$(SERVER): $(SERVEROBJS) @echo LD $@ - @$(CC) $(DNSDOBJS) -o $(DNSD) $(LDFLAGS) + @$(CC) $(SERVEROBJS) -o $(SERVER) $(LDFLAGS) .c.o: @echo CC $< @@ -28,5 +28,5 @@ $(DNSD): $(DNSDOBJS) clean: @echo "Cleaning..." - @rm -f $(DNS) $(DNSD) *~ *.o *.core + @rm -f $(CLIENT) $(SERVER) *~ *.o *.core diff --git a/dnstun.c b/iodine.c similarity index 100% rename from dnstun.c rename to iodine.c diff --git a/dnstund.c b/iodined.c similarity index 100% rename from dnstund.c rename to iodined.c