Fix the build with OBJDIR set

This commit is contained in:
Pierre Pronchery 2020-11-15 20:15:02 +01:00
parent 306342d242
commit 3c374dbb51
5 changed files with 9 additions and 3 deletions

View File

@ -1,6 +1,7 @@
targets=VPN.h
dist=Makefile
#targets
[VPN.h]
type=script
script=../data/appbroker.sh

View File

@ -15,7 +15,7 @@
#include "../include/VPN.h"
#include "VPN.h"
/* types */

View File

@ -5,10 +5,13 @@ ldflags_force=`pkg-config --libs libApp` -Wl,--export-dynamic -lsocket
ldflags=
dist=Makefile,common.c,vpn.h
#targets
[VPN]
type=binary
cppflags=-I $(OBJDIR)../include
sources=vpn.c,main.c
install=$(BINDIR)
#sources
[vpn.c]
depends=$(OBJDIR)../include/VPN.h

View File

@ -24,7 +24,7 @@
#include <netinet/in.h>
#include <arpa/inet.h>
#include <System.h>
#include "../include/VPN.h"
#include "VPN.h"
#include "vpn.h"
#include "../config.h"

View File

@ -1,15 +1,17 @@
targets=libVPN
cppflags=-I $(PREFIX)/include
cflags_force=-W -fPIC `pkg-config --cflags libApp`
cflags=-Wall -g -O2 -pedantic
ldflags_force=`pkg-config --libs libApp`
ldflags=
dist=Makefile
#targets
[libVPN]
type=plugin
cppflags=-I $(OBJDIR)../include
sources=libvpn.c
install=$(LIBDIR)/AppWrapper
#sources
[libvpn.c]
depends=$(OBJDIR)../include/VPN.h,../src/common.c