source: Makefile @ 0de8e7

Revision 0de8e7, 368 bytes checked in by Bjorn Andersson <flex@…>, 12 years ago (diff)

sweet stuff

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