source:
freewrt/package/aiccu/patches/001-crosscompile.patch@
f724867
| Last change on this file since f724867 was f724867, checked in by , 19 years ago | |
|---|---|
|
|
| File size: 1.7 KB | |
-
unix-console/Makefile
diff -Nur aiccu/unix-console/Makefile aiccu-freewrt/unix-console/Makefile
old new 22 22 CFLAGS += -D AICCU_CONSOLE 23 23 24 24 # Linux 25 ifeq ($(shell uname | grep -c "Linux"),1)26 25 CFLAGS += -D AICCU_TYPE="\"linux\"" 27 26 CWARNS += -Wpadded -Wpacked 28 27 SRCS += ../common/aiccu_linux.c 29 28 OBJS += ../common/aiccu_linux.o 30 29 LDFLAGS = -lpthread 31 endif32 30 33 # FreeBSD 434 ifeq ($(shell uname | grep -c "FreeBSD"),1)35 # FreeBSD 4.x36 ifeq ($(shell uname -r | cut -c 1),4)37 CFLAGS += -D AICCU_TYPE="\"freebsd4\""38 SRCS += ../common/aiccu_freebsd4.c39 OBJS += ../common/aiccu_freebsd4.o40 CFLAGS += -pthread41 endif42 43 # FreeBSD 5.x44 ifeq ($(shell uname -r | cut -c 1),5)45 CFLAGS += -D AICCU_TYPE="\"kame\""46 SRCS += ../common/aiccu_kame.c47 OBJS += ../common/aiccu_kame.o48 CFLAGS += -pthread49 endif50 endif51 52 # NetBSD53 ifeq ($(shell uname | grep -c "NetBSD"),1)54 CFLAGS += -D AICCU_TYPE="\"kame\""55 SRCS += ../common/aiccu_kame.c56 OBJS += ../common/aiccu_kame.o57 CFLAGS += -pthread58 endif59 60 # OpenBSD61 ifeq ($(shell uname | grep -c "OpenBSD"),1)62 # 2.7-2.963 ifeq ($(shell uname -r | cut -c 1),2)64 CFLAGS += -D AICCU_TYPE="\"openbsd2\""65 SRCS += ../common/aiccu_openbsd2.c66 OBJS += ../common/aiccu_openbsd2.o67 endif68 # 3.x69 ifeq ($(shell uname -r | cut -c 1),3)70 CFLAGS += -D AICCU_TYPE="\"openbsd\""71 SRCS += ../common/aiccu_openbsd.c72 OBJS += ../common/aiccu_openbsd.o73 endif74 CFLAGS += -pthread75 endif76 77 # Darwin78 ifeq ($(shell uname | grep -c "Darwin"),1)79 CFLAGS += -D AICCU_TYPE="\"darwin\""80 SRCS += ../common/aiccu_darwin.c81 OBJS += ../common/aiccu_darwin.o82 CFLAGS += -DDARWIN83 endif84 31 85 32 all: aiccu 86 33
Note:
See TracBrowser
for help on using the repository browser.
