Makefile 595 B

12345678910111213141516171819
  1. COMPILER=gcc
  2. FLAGS_ALL=-g -Wall -Wextra -Wno-unused-variable -Wno-unused-parameter
  3. FLAGS_EXAMPLE=-Lbuilds/ -lmandarin -lyuzuparse -lorangetree -Wl,-rpath=builds/ -lm
  4. FLAGS_LIB=-fPIC -shared -lc -lm
  5. main.bin: libmandarin.so libyuzuparse.so liborangetree.so
  6. $(COMPILER) $(FLAGS_ALL) src/launch\ program/main.c -o builds/main.bin $(FLAGS_EXAMPLE)
  7. libmandarin.so:
  8. $(COMPILER) $(FLAGS_ALL) src/main/main.c -o builds/libmandarin.so $(FLAGS_LIB)
  9. libyuzuparse.so:
  10. cp src/dependencies/libyuzuparse.so builds/
  11. liborangetree.so:
  12. cp src/dependencies/liborangetree.so builds/
  13. clean:
  14. rm builds/*