State arch

This commit is contained in:
Erik Ekman 2007-01-28 04:17:33 +00:00
parent 1edd418ca2
commit 59b85a87a3
2 changed files with 2 additions and 4 deletions

View file

@ -5,9 +5,6 @@ all:
test: all
(cd tests; make all)
stateos:
@echo OS is $(OS)
clean:
@echo "Cleaning..."
@(cd src; make clean)

View file

@ -5,6 +5,7 @@ SERVER = ../bin/iodined
SERVEROBJS = iodined.o tun.o dns.o read.o encoding.o login.o base32.o md5.o
OS = `uname | tr "a-z" "A-Z"`
ARCH = `uname -m`
LDFLAGS = -lz
CFLAGS = -c -g -Wall -D$(OS)
@ -12,7 +13,7 @@ CFLAGS = -c -g -Wall -D$(OS)
all: stateos $(CLIENT) $(SERVER) $(TESTSUITE)
stateos:
@echo OS is $(OS)
@echo OS is $(OS), arch is $(ARCH)
$(CLIENT): $(CLIENTOBJS)
@echo LD $@