]> rtime.felk.cvut.cz Git - frescor/fna.git/commitdiff
Added Makefiles for OMK makesystem
authorsojkam <sojkam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 27 May 2008 06:20:52 +0000 (06:20 +0000)
committersojkam <sojkam@35b4ef3e-fd22-0410-ab77-dab3279adceb>
Tue, 27 May 2008 06:20:52 +0000 (06:20 +0000)
See http://www.frescor.org/private/wiki/content/Building_FRESCOR_with_OMK_makesystem
for details.

git-svn-id: http://www.frescor.org/private/svn/frescor/fna/trunk@1183 35b4ef3e-fd22-0410-ab77-dab3279adceb

Makefile.omk [new file with mode: 0644]
include/Makefile.omk [new file with mode: 0644]
src_unix/Makefile.omk [new file with mode: 0644]

diff --git a/Makefile.omk b/Makefile.omk
new file mode 100644 (file)
index 0000000..a05e8c1
--- /dev/null
@@ -0,0 +1,20 @@
+SUBDIRS=include
+
+default_CONFIG = CONFIG_FNA_RTEP=n CONFIG_FNA_UNIX=n CONFIG_FNA_FRESCAN=n
+
+lib_LIBRARIES = fna
+
+ifeq ($(CONFIG_FNA_RTEP),y)
+SUBDIRS+=src_rtep
+CFLAGS+=-DRTEP_FNA_ENABLED
+endif
+
+ifeq ($(CONFIG_FNA_UNIX),y)
+SUBDIRS+=src_unix
+CFLAGS+=-DUNIX_FNA_ENABLED
+endif
+
+ifeq ($(CONFIG_FNA_FRESCAN),y)
+SUBDIRS+=src_frescan
+CFLAGS+=-DFRESCAN_FNA_ENABLED
+endif
diff --git a/include/Makefile.omk b/include/Makefile.omk
new file mode 100644 (file)
index 0000000..9aa9efe
--- /dev/null
@@ -0,0 +1 @@
+include_HEADERS = $(notdir $(wildcard $(SOURCES_DIR)/*.h))
diff --git a/src_unix/Makefile.omk b/src_unix/Makefile.omk
new file mode 100644 (file)
index 0000000..3b41e85
--- /dev/null
@@ -0,0 +1,2 @@
+lib_LIBRARIES=unixfna
+unixfna_SOURCES=$(notdir $(wildcard $(SOURCES_DIR)/*.c))