From efe4b99e061339fa9dc673dda168613884d574b1 Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Mon, 5 Jun 2006 12:58:50 +0000 Subject: [PATCH] fancy pancy --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6d1a987..a2d3a32 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,15 @@ CC = gcc OUT = dnstun OBJS = dnstun.o tun.o +OS = `uname | tr "a-z" "A-Z"` + LDFLAGS = -CFLAGS = -c -g -Wall -D`uname | tr "a-z" "A-Z"` +CFLAGS = -c -g -Wall -D$(OS) + +all: stateos $(OUT) + +stateos: + @echo Compiling for $(OS) $(OUT): $(OBJS) $(CC) $(OBJS) -o $(OUT) $(LDFLAGS)