source: Makefile @ b14b23

Revision b14b23, 576 bytes checked in by Erik Ekman <yarrick@…>, 12 years ago (diff)

Move encoding to its own file

  • Property mode set to 100644
Line 
1CC = gcc
2CLIENT = iodine
3CLIENTOBJS = iodine.o tun.o dns.o read.o encoding.o
4SERVER = iodined
5SERVEROBJS = iodined.o tun.o dns.o read.o encoding.o
6
7OS = `uname | tr "a-z" "A-Z"`
8
9LDFLAGS =  -lz
10CFLAGS = -c -g -Wall -D$(OS)
11
12all: stateos $(CLIENT) $(SERVER)
13
14stateos:
15        @echo OS is $(OS)
16
17$(CLIENT): $(CLIENTOBJS)
18        @echo LD $@
19        @$(CC) $(CLIENTOBJS) -o $(CLIENT) $(LDFLAGS)
20
21$(SERVER): $(SERVEROBJS)
22        @echo LD $@
23        @$(CC) $(SERVEROBJS) -o $(SERVER) $(LDFLAGS)
24
25.c.o:
26        @echo CC $<
27        @$(CC) $(CFLAGS) $< -o $@
28
29clean:
30        @echo "Cleaning..."
31        @rm -f $(CLIENT) $(SERVER) *~ *.o *.core
32
Note: See TracBrowser for help on using the repository browser.