Skip to content
Snippets Groups Projects
Verified Commit 96e4e5c3 authored by raphael.bach's avatar raphael.bach
Browse files

Add `array-sum-pp` and `pp` targets in Makefiles

parent 8b0b7cc0
No related branches found
No related tags found
No related merge requests found
...@@ -42,15 +42,13 @@ src/fmpi_futhark_entry.c ...@@ -42,15 +42,13 @@ src/fmpi_futhark_entry.c
log/ log/
# Misc # Misc
cloc_exclude .clocignore
scratchpad
# Object files # Object files
*.o *.o
obj/ obj/
# Scratchpads
scratchpad
# Static libraries # Static libraries
*.a *.a
......
...@@ -102,6 +102,12 @@ examples: array-sum ...@@ -102,6 +102,12 @@ examples: array-sum
.PHONY: array-sum .PHONY: array-sum
array-sum: array-sum:
$(MAKE) -C examples/array_sum all $(MAKE) -C examples/array_sum all
.PHONY: array-sum-pp
array-sum-pp: export BUILD_MODE := $(BUILD_MODE)
array-sum-pp: export CFLAGS := $(filter-out -Iinclude,$(CFLAGS)) -I../../include
array-sum-pp:
$(MAKE) -C examples/array_sum pp
################################################################################ ################################################################################
# INSTALL TARGETS # INSTALL TARGETS
################################################################################ ################################################################################
......
...@@ -3,3 +3,4 @@ as-release ...@@ -3,3 +3,4 @@ as-release
as.c as.c
as.h as.h
as.json as.json
main.pp
...@@ -17,6 +17,12 @@ as-$(BUILD_MODE): main.c as.c as.h ...@@ -17,6 +17,12 @@ as-$(BUILD_MODE): main.c as.c as.h
as.h as.c &: as.fut as.h as.c &: as.fut
futhark c --library $< futhark c --library $<
.PHONY: pp
pp: main.pp
main.pp: main.c
$(CC) $< -o $@ $(CFLAGS) -dU -E
################################################################################ ################################################################################
# CLEAN TARGETS # CLEAN TARGETS
################################################################################ ################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment