Fix the build with OBJDIR set
This commit is contained in:
parent
306342d242
commit
3c374dbb51
|
@ -1,6 +1,7 @@
|
||||||
targets=VPN.h
|
targets=VPN.h
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
|
#targets
|
||||||
[VPN.h]
|
[VPN.h]
|
||||||
type=script
|
type=script
|
||||||
script=../data/appbroker.sh
|
script=../data/appbroker.sh
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#include "../include/VPN.h"
|
#include "VPN.h"
|
||||||
|
|
||||||
|
|
||||||
/* types */
|
/* types */
|
||||||
|
|
|
@ -5,10 +5,13 @@ ldflags_force=`pkg-config --libs libApp` -Wl,--export-dynamic -lsocket
|
||||||
ldflags=
|
ldflags=
|
||||||
dist=Makefile,common.c,vpn.h
|
dist=Makefile,common.c,vpn.h
|
||||||
|
|
||||||
|
#targets
|
||||||
[VPN]
|
[VPN]
|
||||||
type=binary
|
type=binary
|
||||||
|
cppflags=-I $(OBJDIR)../include
|
||||||
sources=vpn.c,main.c
|
sources=vpn.c,main.c
|
||||||
install=$(BINDIR)
|
install=$(BINDIR)
|
||||||
|
|
||||||
|
#sources
|
||||||
[vpn.c]
|
[vpn.c]
|
||||||
depends=$(OBJDIR)../include/VPN.h
|
depends=$(OBJDIR)../include/VPN.h
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
#include <System.h>
|
#include <System.h>
|
||||||
#include "../include/VPN.h"
|
#include "VPN.h"
|
||||||
#include "vpn.h"
|
#include "vpn.h"
|
||||||
#include "../config.h"
|
#include "../config.h"
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
targets=libVPN
|
targets=libVPN
|
||||||
cppflags=-I $(PREFIX)/include
|
|
||||||
cflags_force=-W -fPIC `pkg-config --cflags libApp`
|
cflags_force=-W -fPIC `pkg-config --cflags libApp`
|
||||||
cflags=-Wall -g -O2 -pedantic
|
cflags=-Wall -g -O2 -pedantic
|
||||||
ldflags_force=`pkg-config --libs libApp`
|
ldflags_force=`pkg-config --libs libApp`
|
||||||
ldflags=
|
ldflags=
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
|
#targets
|
||||||
[libVPN]
|
[libVPN]
|
||||||
type=plugin
|
type=plugin
|
||||||
|
cppflags=-I $(OBJDIR)../include
|
||||||
sources=libvpn.c
|
sources=libvpn.c
|
||||||
install=$(LIBDIR)/AppWrapper
|
install=$(LIBDIR)/AppWrapper
|
||||||
|
|
||||||
|
#sources
|
||||||
[libvpn.c]
|
[libvpn.c]
|
||||||
depends=$(OBJDIR)../include/VPN.h,../src/common.c
|
depends=$(OBJDIR)../include/VPN.h,../src/common.c
|
||||||
|
|
Loading…
Reference in New Issue
Block a user