blob: df3c02d290995938b2f3f6c30e44e434e5c58720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
$NetBSD: patch-aa,v 1.3 2006/08/31 08:53:56 ghen Exp $
--- unix-console/Makefile.orig 2006-07-25 11:20:48.000000000 +0200
+++ unix-console/Makefile
@@ -26,27 +26,15 @@ CWARNS += -W -Wall -Wshadow -Wpointer-ar
#CFLAGS += $(CWARNS) -D_GNU_SOURCE -D_DEBUG -g3 -O0
CFLAGS += $(CWARNS) -D_GNU_SOURCE
-CC = @gcc
+CC = cc
RM = rm
-# Add -O3 when nothing is specified yet
-ifeq ($(shell echo $(CFLAGS) | grep -c "\-O"),0)
-CFLAGS += -O3
-endif
-
# This is a console client
CFLAGS += -D AICCU_CONSOLE
-# GnuTLS Support ?
-# Used by TIC to secure that communication
-# Currently defaultly builds only on Linux, but other platforms might easily also support it
-ifeq ($(shell uname | grep -c "Linux"),1)
-CFLAGS += -D _LINUX -D AICCU_GNUTLS
-LDFLAGS += -lgnutls
-endif
-
# Linux
ifeq ($(shell uname | grep -c "Linux"),1)
+CFLAGS += -D _LINUX
CFLAGS += -D AICCU_TYPE="\"linux\""
SRCS += ../common/aiccu_linux.c
OBJS += ../common/aiccu_linux.o
@@ -82,10 +70,10 @@ endif
# NetBSD
ifeq ($(shell uname | grep -c "NetBSD"),1)
-CFLAGS += -D _NETBSD -D AICCU_TYPE="\"kame\""
+CFLAGS += -D_NETBSD -DAICCU_TYPE="\"kame\""
SRCS += ../common/aiccu_kame.c
OBJS += ../common/aiccu_kame.o
-CFLAGS += -pthread -D _NETBSD_SOURCE
+CFLAGS += -pthread -D_NETBSD_SOURCE
endif
# OpenBSD
|