mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-22 08:09:19 +02:00
moving files to src and tests, tests disabled
This commit is contained in:
parent
8455d69433
commit
1f740de4aa
|
@ -1,10 +1,8 @@
|
||||||
CC = gcc
|
CC = gcc
|
||||||
CLIENT = iodine
|
CLIENT = ../bin/iodine
|
||||||
CLIENTOBJS = iodine.o tun.o dns.o read.o encoding.o
|
CLIENTOBJS = iodine.o tun.o dns.o read.o encoding.o
|
||||||
SERVER = iodined
|
SERVER = ../bin/iodined
|
||||||
SERVEROBJS = iodined.o tun.o dns.o read.o encoding.o
|
SERVEROBJS = iodined.o tun.o dns.o read.o encoding.o
|
||||||
TESTSUITE = tester
|
|
||||||
TESTOBJS = test.o dns.o read.o encoding.o
|
|
||||||
|
|
||||||
OS = `uname | tr "a-z" "A-Z"`
|
OS = `uname | tr "a-z" "A-Z"`
|
||||||
|
|
||||||
|
@ -13,26 +11,19 @@ CFLAGS = -c -g -Wall -D$(OS)
|
||||||
|
|
||||||
all: stateos $(CLIENT) $(SERVER) $(TESTSUITE)
|
all: stateos $(CLIENT) $(SERVER) $(TESTSUITE)
|
||||||
|
|
||||||
test: $(TESTSUITE)
|
|
||||||
@./$(TESTSUITE)
|
|
||||||
|
|
||||||
stateos:
|
stateos:
|
||||||
@echo OS is $(OS)
|
@echo OS is $(OS)
|
||||||
|
|
||||||
$(CLIENT): $(CLIENTOBJS)
|
$(CLIENT): $(CLIENTOBJS)
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
|
@mkdir -p ../bin
|
||||||
@$(CC) $(CLIENTOBJS) -o $(CLIENT) $(LDFLAGS)
|
@$(CC) $(CLIENTOBJS) -o $(CLIENT) $(LDFLAGS)
|
||||||
|
|
||||||
$(SERVER): $(SERVEROBJS)
|
$(SERVER): $(SERVEROBJS)
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
|
@mkdir -p ../bin
|
||||||
@$(CC) $(SERVEROBJS) -o $(SERVER) $(LDFLAGS)
|
@$(CC) $(SERVEROBJS) -o $(SERVER) $(LDFLAGS)
|
||||||
|
|
||||||
$(TESTSUITE): $(TESTOBJS)
|
|
||||||
@echo LD $@
|
|
||||||
@$(CC) $(TESTOBJS) -o $(TESTSUITE) $(LDFLAGS)
|
|
||||||
@echo Running tests...
|
|
||||||
@./$(TESTSUITE)
|
|
||||||
|
|
||||||
.c.o:
|
.c.o:
|
||||||
@echo CC $<
|
@echo CC $<
|
||||||
@$(CC) $(CFLAGS) $< -o $@
|
@$(CC) $(CFLAGS) $< -o $@
|
Loading…
Reference in New Issue