mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-27 12:05:15 +00:00
State arch
This commit is contained in:
parent
1edd418ca2
commit
59b85a87a3
3
Makefile
3
Makefile
@ -5,9 +5,6 @@ all:
|
|||||||
test: all
|
test: all
|
||||||
(cd tests; make all)
|
(cd tests; make all)
|
||||||
|
|
||||||
stateos:
|
|
||||||
@echo OS is $(OS)
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@echo "Cleaning..."
|
@echo "Cleaning..."
|
||||||
@(cd src; make clean)
|
@(cd src; make clean)
|
||||||
|
@ -5,6 +5,7 @@ SERVER = ../bin/iodined
|
|||||||
SERVEROBJS = iodined.o tun.o dns.o read.o encoding.o login.o base32.o md5.o
|
SERVEROBJS = iodined.o tun.o dns.o read.o encoding.o login.o base32.o md5.o
|
||||||
|
|
||||||
OS = `uname | tr "a-z" "A-Z"`
|
OS = `uname | tr "a-z" "A-Z"`
|
||||||
|
ARCH = `uname -m`
|
||||||
|
|
||||||
LDFLAGS = -lz
|
LDFLAGS = -lz
|
||||||
CFLAGS = -c -g -Wall -D$(OS)
|
CFLAGS = -c -g -Wall -D$(OS)
|
||||||
@ -12,7 +13,7 @@ CFLAGS = -c -g -Wall -D$(OS)
|
|||||||
all: stateos $(CLIENT) $(SERVER) $(TESTSUITE)
|
all: stateos $(CLIENT) $(SERVER) $(TESTSUITE)
|
||||||
|
|
||||||
stateos:
|
stateos:
|
||||||
@echo OS is $(OS)
|
@echo OS is $(OS), arch is $(ARCH)
|
||||||
|
|
||||||
$(CLIENT): $(CLIENTOBJS)
|
$(CLIENT): $(CLIENTOBJS)
|
||||||
@echo LD $@
|
@echo LD $@
|
||||||
|
Loading…
Reference in New Issue
Block a user