diff options
| author | Clifford Wolf <clifford@clifford.at> | 2016-05-15 00:38:42 +0200 |
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2016-05-15 00:38:42 +0200 |
| commit | a4e1fe2fbed4656bbd1fbff513ef20157f519858 (patch) | |
| tree | 16efaccffbab36578e04d64aef215e060324a3cd /icebram/Makefile | |
| parent | af36a8ade3f69d7b5513bd5593559416c8a2d833 (diff) | |
| parent | 8503d3edd12f62c78e1de4ecc91d5ca89250e13c (diff) | |
Merge branch 'feat-icebram'
Diffstat (limited to 'icebram/Makefile')
| -rw-r--r-- | icebram/Makefile | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/icebram/Makefile b/icebram/Makefile new file mode 100644 index 0000000..827fe7c --- /dev/null +++ b/icebram/Makefile @@ -0,0 +1,33 @@ +include ../config.mk +LDLIBS = -lm -lstdc++ +CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include + +ifeq ($(STATIC),1) +LDFLAGS += -static +endif + +all: icebram$(EXE) + +icebram$(EXE): icebram.o + $(CC) -o $@ $(LDFLAGS) $^ $(LDLIBS) + +test: icebram + bash rundemo.sh + +install: all + mkdir -p $(DESTDIR)$(PREFIX)/bin + cp icebram $(DESTDIR)$(PREFIX)/bin/icebram + +uninstall: + rm -f $(DESTDIR)$(PREFIX)/bin/icebram + +clean: + rm -f icebram + rm -f icebram.exe + rm -f demo.* demo_*.* + rm -f *.o *.d + +-include *.d + +.PHONY: all test install uninstall clean + |
