makefile 536 B

123456789101112131415161718192021
  1. EXECUTABLE=ddlang
  2. ENGINE=dd_pixi_engine.js
  3. ${EXECUTABLE}: *.c ${ENGINE}
  4. flex lex.l
  5. bison -d yacc.y
  6. gcc *.c -o ${EXECUTABLE}
  7. ${ENGINE}: engines/pixi
  8. ${MAKE} -C engines/pixi
  9. install: ${EXECUTABLE}
  10. install ${EXECUTABLE} /usr/bin/
  11. mkdir -p /usr/share/${EXECUTABLE}
  12. install engines/pixi/${ENGINE} /usr/share/${EXECUTABLE}/${ENGINE}
  13. install engines/pixi/index.html /usr/share/${EXECUTABLE}/index.html
  14. install engines/pixi/pixi.min.js /usr/share/${EXECUTABLE}/pixi.min.js
  15. clean:
  16. rm -f a.out lex.yy.c yacc.tab.c yacc.tab.h global