summaryrefslogtreecommitdiff
path: root/regress/libexec/ld.so/dlopen/prog1/Makefile
blob: 8d42845e8cb2159473a322524516d8daa8162ed7 (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
# $OpenBSD: Makefile,v 1.2 2005/09/17 01:55:23 drahn Exp $

.include <bsd.obj.mk>

PROG=prog1

SRCS=prog1.C

AA_DIR=${.CURDIR}/../libaa
AA_OBJDIR!=    if [ -d $(AA_DIR)/${__objdir} ]; then \
                        echo "$(AA_DIR)/${__objdir}"; \
		else \
			echo "$(AA_DIR)"; \
		fi

AB_DIR=${.CURDIR}/../libab
AB_OBJDIR!=    if [ -d $(AB_DIR)/${__objdir} ]; then \
                        echo "$(AB_DIR)/${__objdir}"; \
		else \
			echo "$(AB_DIR)"; \
		fi



CFLAGS=-I${.CURDIR}/../libab
CFLAGS+=-g
LDADD=
#LDADD+=-lab
#LDADD+=-laa
LDFLAGS=-L$(AA_OBJDIR) -L$(AB_OBJDIR)
LDFLAGS+= -Wl,-rpath,$(AA_OBJDIR)  -Wl,-rpath,$(AB_OBJDIR) 
NOMAN=
CC=c++
LD_LIBRARY_PATH=$(AA_OBJDIR):$(AB_OBJDIR)

.include <bsd.regress.mk>