2013-01-05 06:34:56 +07:00
|
|
|
uname_M := $(shell uname -m 2>/dev/null || echo not)
|
|
|
|
ARCH ?= $(shell echo $(uname_M) | sed -e s/i.86/i386/)
|
|
|
|
ifeq ($(ARCH),i386)
|
2014-08-30 05:19:06 +07:00
|
|
|
ARCH := x86
|
2013-01-05 06:34:56 +07:00
|
|
|
CFLAGS := -DCONFIG_X86_32 -D__i386__
|
|
|
|
endif
|
|
|
|
ifeq ($(ARCH),x86_64)
|
2014-08-30 05:19:06 +07:00
|
|
|
ARCH := x86
|
2013-01-05 06:34:56 +07:00
|
|
|
CFLAGS := -DCONFIG_X86_64 -D__x86_64__
|
|
|
|
endif
|
|
|
|
|
|
|
|
CFLAGS += -I../../../../usr/include/
|
|
|
|
|
|
|
|
all:
|
2015-04-02 06:20:19 +07:00
|
|
|
$(CC) $(CFLAGS) msgque.c -o msgque_test
|
2013-01-05 06:34:56 +07:00
|
|
|
|
2015-03-11 11:05:59 +07:00
|
|
|
TEST_PROGS := msgque_test
|
|
|
|
|
|
|
|
include ../lib.mk
|
2013-01-05 06:34:56 +07:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -fr ./msgque_test
|