mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-01 17:36:10 +03:00
More name changing
This commit is contained in:
parent
eba70164e0
commit
1e9df58f2f
20
Makefile
20
Makefile
@ -1,26 +1,26 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
DNS = iodine
|
CLIENT = iodine
|
||||||
DNSOBJS = dnstun.o tun.o dns.o read.o
|
CLIENTOBJS = iodine.o tun.o dns.o read.o
|
||||||
DNSD = iodined
|
SERVER = iodined
|
||||||
DNSDOBJS = dnstund.o tun.o dnsd.o read.o
|
SERVEROBJS = iodined.o tun.o dnsd.o read.o
|
||||||
|
|
||||||
OS = `uname | tr "a-z" "A-Z"`
|
OS = `uname | tr "a-z" "A-Z"`
|
||||||
|
|
||||||
LDFLAGS = -lz
|
LDFLAGS = -lz
|
||||||
CFLAGS = -c -g -Wall -D$(OS)
|
CFLAGS = -c -g -Wall -D$(OS)
|
||||||
|
|
||||||
all: stateos $(DNS) $(DNSD)
|
all: stateos $(CLIENT) $(SERVER)
|
||||||
|
|
||||||
stateos:
|
stateos:
|
||||||
@echo OS is $(OS)
|
@echo OS is $(OS)
|
||||||
|
|
||||||
$(DNS): $(DNSOBJS)
|
$(CLIENT): $(CLIENTOBJS)
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
@$(CC) $(DNSOBJS) -o $(DNS) $(LDFLAGS)
|
@$(CC) $(CLIENTOBJS) -o $(CLIENT) $(LDFLAGS)
|
||||||
|
|
||||||
$(DNSD): $(DNSDOBJS)
|
$(SERVER): $(SERVEROBJS)
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
@$(CC) $(DNSDOBJS) -o $(DNSD) $(LDFLAGS)
|
@$(CC) $(SERVEROBJS) -o $(SERVER) $(LDFLAGS)
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
@echo CC $<
|
@echo CC $<
|
||||||
@ -28,5 +28,5 @@ $(DNSD): $(DNSDOBJS)
|
|||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "Cleaning..."
|
@echo "Cleaning..."
|
||||||
@rm -f $(DNS) $(DNSD) *~ *.o *.core
|
@rm -f $(CLIENT) $(SERVER) *~ *.o *.core
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user