uni

University stuff
git clone git://git.margiolis.net/uni.git
Log | Files | Refs | README | LICENSE

Makefile (587B)


      1 .POSIX:
      2 
      3 CC = c++
      4 INCS = -Iinclude 
      5 LIBS = -Llib -lncursesw -lm
      6 CFLAGS = -std=c++14 -pedantic -Wall -Os ${INCS}
      7 LDFLAGS = ${LIBS}
      8 
      9 BIN = game
     10 
     11 SRC = main.cc \
     12       Engine.cc \
     13       Gnome.cc \
     14       Movable.cc \
     15       Potter.cc \
     16       Score.cc \
     17       Traal.cc \
     18       Gem.cc
     19 
     20 OBJ = ${SRC:.cc=.o}
     21 
     22 all: options ${BIN}
     23 
     24 options:
     25 	@echo ${BIN} build options:
     26 	@echo "CFLAGS   = ${CFLAGS}"
     27 	@echo "LDFLAGS  = ${LDFLAGS}"
     28 	@echo "CC       = ${CC}"
     29 
     30 ${BIN}: ${OBJ}
     31 	${CC} ${LDFLAGS} ${OBJ} -o $@
     32 
     33 .cc.o:
     34 	${CC} -c ${CFLAGS} $<
     35 
     36 clean:
     37 	rm -f ${BIN} ${OBJ} *.core
     38 
     39 .PHONY: all options clean