diff options
Diffstat (limited to 'targets')
| -rw-r--r-- | targets/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/targets/Makefile b/targets/Makefile new file mode 100644 index 0000000..5df4999 --- /dev/null +++ b/targets/Makefile @@ -0,0 +1,22 @@ +OBJDIR ?= obj + +CC ?= gcc + +WARNFLAGS ?= -Wall -Wextra +COMMONFLAGS ?= -fno-builtin -fPIC -DPIC -pthread +OPTFLAGS ?= -O3 -DNDEBUG + +CFLAGS ?= $(OPTFLAGS) $(WARNFLAGS) $(COMMONFLAGS) + +LDFLAGS ?= -pthread -static-libgcc + +.PHONY: all clean + +all: $(OBJDIR) + @echo building targets + +$(OBJDIR): + mkdir $@ + +clean: + rm -rf $(OBJDIR) |
