Makerules 484 Bytes
Newer Older
Cedric Roux's avatar
   
Cedric Roux committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC		= gcc
RM		= rm -f
CP		= cp -p
LD		= /usr/bin/ld
AR		= /usr/bin/ar
CD		= cd
MAKE		= make

CFLAGS		= $(INCLUDES) $(DEFINES) -g -pthread
DEFINES		= -DLINUX -D_REENTRANT -Wall -O -std=gnu99

SVN_REV = $(shell svnversion -n .)
DATE_REV = $(shell date '+%F %T')

# Default builds UEprocess
ifeq ($(PROCESS), MME)
  DEFINES	+= -DNAS_MME
else
19
  PROCESS   = UE
Cedric Roux's avatar
   
Cedric Roux committed
20
21
22
23
24
25
26
27
  DEFINES	+= -DNAS_UE
endif

LDFLAGS		= -pthread -L$(LIBDIR) -L$(LIBPROCESS) -lrt

SRCS = $(wildcard *.c)
OBJS = $(SRCS:.c=.o)