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