File: Rules.bgpm

package info (click to toggle)
papi 5.7.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,856 kB
  • sloc: ansic: 93,265; fortran: 3,338; xml: 2,460; makefile: 815; sh: 290
file content (23 lines) | stat: -rw-r--r-- 584 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# $Id: Rules.bgpm,v 1.1 2011/03/11 23:06:54 jagode Exp $

ifneq ($(USE_DEBUG),)
   BGPM_LIBNAME = bgpm_debug
   DEBUG_BGPM = "-DDEBUG_BGPM"
else
   BGPM_LIBNAME = bgpm
endif


BGPM_OBJS=$(shell $(AR) t $(BGPM_INSTALL_DIR)/bgpm/lib/lib$(BGPM_LIBNAME).a && $(AR) 2>/dev/null)

MISCOBJS = $(BGPM_OBJS) $(MISCSRCS:.c=.o)

include Makefile.inc

CFLAGS += -I$(BGPM_INSTALL_DIR) -I$(BGPM_INSTALL_DIR)/spi/include/kernel/cnk $(DEBUG_BGPM)
LDFLAGS += $(BGPM_INSTALL_DIR)/bgpm/lib/lib$(BGPM_LIBNAME).a -lrt -lstdc++ 


$(BGPM_OBJS):
	$(AR) xv $(BGPM_INSTALL_DIR)/bgpm/lib/lib$(BGPM_LIBNAME).a