diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-05-12 00:48:37 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-05-12 00:48:37 +0200 |
commit | 0e1417249c832afabb3c81eb707d39efe94955df (patch) | |
tree | 6c0d282c6170018a44e118bb3269272302517b99 /icebram/Makefile | |
parent | 66e35e36dcebd3d0e68fea0b3148a50d7f966a63 (diff) | |
download | icestorm-0e1417249c832afabb3c81eb707d39efe94955df.tar.gz icestorm-0e1417249c832afabb3c81eb707d39efe94955df.tar.bz2 icestorm-0e1417249c832afabb3c81eb707d39efe94955df.zip |
Added icebram skeleton
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 + |