iodine/src/Makefile

35 lines
658 B
Makefile
Raw Normal View History

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