2006-06-05 15:41:08 +03:00
|
|
|
CC = gcc
|
2006-11-09 21:08:28 +02:00
|
|
|
CLIENT = ../bin/iodine
|
2006-11-18 18:08:47 +02:00
|
|
|
CLIENTOBJS = iodine.o tun.o dns.o read.o encoding.o login.o
|
2006-11-09 21:08:28 +02:00
|
|
|
SERVER = ../bin/iodined
|
2006-11-18 18:08:47 +02:00
|
|
|
SERVEROBJS = iodined.o tun.o dns.o read.o encoding.o login.o
|
2006-06-05 15:41:08 +03:00
|
|
|
|
2006-06-05 15:58:50 +03:00
|
|
|
OS = `uname | tr "a-z" "A-Z"`
|
|
|
|
|
2006-06-06 20:59:24 +03:00
|
|
|
LDFLAGS = -lz
|
2006-06-05 15:58:50 +03:00
|
|
|
CFLAGS = -c -g -Wall -D$(OS)
|
|
|
|
|
2006-08-25 00:02:52 +03:00
|
|
|
all: stateos $(CLIENT) $(SERVER) $(TESTSUITE)
|
|
|
|
|
2006-06-05 15:58:50 +03:00
|
|
|
stateos:
|
2006-06-05 16:16:24 +03:00
|
|
|
@echo OS is $(OS)
|
2006-06-05 15:41:08 +03:00
|
|
|
|
2006-06-11 15:41:11 +03:00
|
|
|
$(CLIENT): $(CLIENTOBJS)
|
2006-06-05 16:44:15 +03:00
|
|
|
@echo LD $@
|
2006-11-09 21:08:28 +02:00
|
|
|
@mkdir -p ../bin
|
2006-06-11 15:41:11 +03:00
|
|
|
@$(CC) $(CLIENTOBJS) -o $(CLIENT) $(LDFLAGS)
|
2006-06-05 21:47:09 +03:00
|
|
|
|
2006-06-11 15:41:11 +03:00
|
|
|
$(SERVER): $(SERVEROBJS)
|
2006-06-05 21:47:09 +03:00
|
|
|
@echo LD $@
|
2006-11-09 21:08:28 +02:00
|
|
|
@mkdir -p ../bin
|
2006-06-11 15:41:11 +03:00
|
|
|
@$(CC) $(SERVEROBJS) -o $(SERVER) $(LDFLAGS)
|
2006-06-05 15:41:08 +03:00
|
|
|
|
2006-06-05 16:16:24 +03:00
|
|
|
.c.o:
|
2006-06-05 16:45:20 +03:00
|
|
|
@echo CC $<
|
2006-06-05 16:16:24 +03:00
|
|
|
@$(CC) $(CFLAGS) $< -o $@
|
2006-06-05 15:41:08 +03:00
|
|
|
|
|
|
|
clean:
|
2006-11-18 15:37:37 +02:00
|
|
|
@echo "Cleaning src/"
|
|
|
|
@rm -f $(CLIENT) $(SERVER) *~ *.o *.core
|
2006-06-05 15:41:08 +03:00
|
|
|
|