|
@@ -1,4 +1,4 @@
|
|
-special_executables = bootstrap_static bootstrap_pie shared_object
|
|
|
|
|
|
+special_executables = bootstrap_static bootstrap_pie shared_object openmp
|
|
c_executables = $(filter-out $(special_executables),$(patsubst %.c,%,$(wildcard *.c)))
|
|
c_executables = $(filter-out $(special_executables),$(patsubst %.c,%,$(wildcard *.c)))
|
|
cxx_executables = $(patsubst %.cpp,%,$(wildcard *.cpp))
|
|
cxx_executables = $(patsubst %.cpp,%,$(wildcard *.cpp))
|
|
manifests = $(patsubst %.manifest.template,%.manifest,$(wildcard *.manifest.template)) manifest
|
|
manifests = $(patsubst %.manifest.template,%.manifest,$(wildcard *.manifest.template)) manifest
|
|
@@ -44,6 +44,11 @@ shared_object: %: %.c
|
|
|
|
|
|
syscall: CFLAGS += -I$(PALDIR)/../include -I$(PALDIR)/host/$(PAL_HOST)
|
|
syscall: CFLAGS += -I$(PALDIR)/../include -I$(PALDIR)/host/$(PAL_HOST)
|
|
|
|
|
|
|
|
+openmp: %: %.c
|
|
|
|
+ @echo [ $@ ]
|
|
|
|
+ @$(CC) $(CFLAGS) -o $@ -fopenmp $< \
|
|
|
|
+ $(shell echo $@ | sed 's/^[^\.]*//g' | sed 's/\./ -l/g')
|
|
|
|
+
|
|
else
|
|
else
|
|
.IGNORE: $(special_executables) $(c_executables) $(cxx_executables)
|
|
.IGNORE: $(special_executables) $(c_executables) $(cxx_executables)
|
|
$(special_executables) $(c_executables) $(cxx_executables):
|
|
$(special_executables) $(c_executables) $(cxx_executables):
|