Skip to content
This repository has been archived by the owner on May 16, 2019. It is now read-only.

Commit

Permalink
moved system headers into ./include/ so that they can be included fro…
Browse files Browse the repository at this point in the history
…m within the project using #include <file>
  • Loading branch information
attie committed Mar 6, 2016
1 parent 07579ae commit 8eb6351
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 5 deletions.
File renamed without changes.
2 changes: 0 additions & 2 deletions xbeep.h → include/xbeep.h
Expand Up @@ -30,9 +30,7 @@
#include <vector>
#include <stdarg.h>

#ifndef __XBEE_H
#include <xbee.h>
#endif

#ifndef EXPORT
#define EXPORT
Expand Down
5 changes: 4 additions & 1 deletion internal.h
Expand Up @@ -37,7 +37,10 @@ struct xbee_rxInfo;
struct xbee_interface;

#include "xsys.h"
#include "xbee.h"

/* include xbee,h after xsys.h for in-project builds, as EXPORT is defined from xsys.h */
#include <xbee.h>

#include "mutex.h"

struct xbee_buf {
Expand Down
2 changes: 1 addition & 1 deletion make/install.darwin.mk
Expand Up @@ -6,7 +6,7 @@ $(SYS_LIBDIR)/$(LIBNAME)%.$(LIBFULLREV): $(DESTDIR)/$(LIBNAME)%.$(LIBFULLREV)
$(SYS_LIBDIR)/$(LIBNAME)%: $(SYS_LIBDIR)/$(LIBNAME)%.$(LIBFULLREV)
$(SYMLINK) -fs $(shell basename $^) $@

$(addprefix $(SYS_INCDIR)/,$(SYS_HEADERS)): $(SYS_INCDIR)/%: %
$(addprefix $(SYS_INCDIR)/,$(SYS_HEADERS)): $(SYS_INCDIR)/%: $(HDRDIR)/%
$(INSTALL) -m 644 $^ $@

$(addprefix $(SYS_MANDIR)/,$(addsuffix .gz,$(SYS_MANPAGES))): $(SYS_MANDIR)/%.gz: $(MANDIR)/%
Expand Down
2 changes: 1 addition & 1 deletion make/install.unix.mk
Expand Up @@ -9,7 +9,7 @@ $(SYS_LIBDIR)/$(LIBNAME)%.$(LIBFULLREV): $(DESTDIR)/$(LIBNAME)%.$(LIBFULLREV)
$(SYS_LIBDIR)/$(LIBNAME)%: $(SYS_LIBDIR)/$(LIBNAME)%.$(LIBFULLREV)
$(SYMLINK) -fs $(shell basename $^) $@

$(addprefix $(SYS_INCDIR)/,$(SYS_HEADERS)): $(SYS_INCDIR)/%: %
$(addprefix $(SYS_INCDIR)/,$(SYS_HEADERS)): $(SYS_INCDIR)/%: $(HDRDIR)/%
$(INSTALL) -m 644 $^ $@

$(addprefix $(SYS_MANDIR)/,$(addsuffix .gz,$(SYS_MANPAGES))): $(SYS_MANDIR)/%.gz: $(MANDIR)/%
Expand Down
1 change: 1 addition & 0 deletions make/libconfig.mk
Expand Up @@ -10,6 +10,7 @@ MANDIR:= man
HTMLDIR:= html
BUILDDIR:= .build
DESTDIR:= lib
HDRDIR:= include

CONSTRUCTIONDIRS:= $(BUILDDIR) $(DESTDIR)

Expand Down
1 change: 1 addition & 0 deletions make/os.darwin.mk
Expand Up @@ -19,6 +19,7 @@ MAN2HTML:= man2html
DEBUG:= -g
LIBS:= pthread
CFLAGS+= -Wall -c -fPIC $(DEBUG) $(addprefix -D,$(OPTIONS))
CFLAGS+= -I $(HDRDIR)
#CFLAGS+= -pedantic
#CFLAGS+= -fvisibility=hidden
CFLAGS+= -Wno-variadic-macros
Expand Down
1 change: 1 addition & 0 deletions make/os.freebsd.mk
Expand Up @@ -17,6 +17,7 @@ INSTALL= install -g $(SYS_GROUP) -o $(SYS_USER)

DEBUG:= -g
CFLAGS+= -Wall -c -fPIC $(DEBUG) $(addprefix -D,$(OPTIONS))
CFLAGS+= -I $(HDRDIR)
#CFLAGS+= -pedantic
CFLAGS+= -fvisibility=hidden
CFLAGS+= -Wno-variadic-macros
Expand Down
1 change: 1 addition & 0 deletions make/os.linux.mk
Expand Up @@ -19,6 +19,7 @@ MAN2HTML:= man2html
DEBUG:= -g
LIBS:= pthread rt
CFLAGS+= -Wall -c -fPIC $(DEBUG) $(addprefix -D,$(OPTIONS)) -DLIBXBEE_BUILD
CFLAGS+= -I $(HDRDIR)
#CFLAGS+= -pedantic
CFLAGS+= -fvisibility=hidden
CFLAGS+= -Wno-variadic-macros
Expand Down

0 comments on commit 8eb6351

Please sign in to comment.