summaryrefslogtreecommitdiffhomepage
path: root/project
diff options
context:
space:
mode:
Diffstat (limited to 'project')
-rw-r--r--project/headers.mk7
-rw-r--r--project/os/midipix.mk2
2 files changed, 7 insertions, 2 deletions
diff --git a/project/headers.mk b/project/headers.mk
index 65ae80b..20054d5 100644
--- a/project/headers.mk
+++ b/project/headers.mk
@@ -1,3 +1,5 @@
+-include $(PROJECT_DIR)/project/os/$(OS).mk
+
# build/version.h
build/version.h:$(wildcard $(SOURCE_DIR)/VERSION $(SOURCE_DIR)/.git/index) dirs.tag
printf '#define VERSION "%s"\n' \
@@ -65,8 +67,9 @@ dst_bits_h += $(src_bits_h:build/include/%=$(DESTDIR)$(INCLUDEDIR)/%)
src_header_dirs = $(filter %/,$(wildcard $(SOURCE_DIR)/include/*/))
dst_header_dirs = $(src_header_dirs:$(SOURCE_DIR)/include/%=$(DESTDIR)$(INCLUDEDIR)/%)
-src_c_headers = $(sort $(wildcard $(SOURCE_DIR)/include/*.h))
-src_c_headers += $(sort $(wildcard $(SOURCE_DIR)/include/*/*.h))
+src_c_headers_ = $(sort $(wildcard $(SOURCE_DIR)/include/*.h))
+src_c_headers_ += $(sort $(wildcard $(SOURCE_DIR)/include/*/*.h))
+src_c_headers = $(filter-out $(OS_EXCLUDE_LIBC_HEADERS), $(src_c_headers_))
dst_c_headers = $(subst $(SOURCE_DIR)/include/, \
$(DESTDIR)$(INCLUDEDIR)/, \
diff --git a/project/os/midipix.mk b/project/os/midipix.mk
new file mode 100644
index 0000000..efeec05
--- /dev/null
+++ b/project/os/midipix.mk
@@ -0,0 +1,2 @@
+OS_EXCLUDE_LIBC_HEADERS = \
+ $(SOURCE_DIR)/include/sys/epoll.h \