Aer Interpreter Source
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
887 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. CFLAGS = -W -Wunused -Wall -I. -Ofast
  2. LDFLAGS =
  3. CC = gcc
  4. INCLUDES =
  5. OBJ =\
  6. api.o \
  7. builtin.o \
  8. compile.o \
  9. constant.o \
  10. hashmap.o \
  11. interpreter.o \
  12. lexer.o \
  13. lib.o \
  14. memobj.o \
  15. oop.o \
  16. parser.o \
  17. vfs.o \
  18. vm.o
  19. ASTYLE_FLAGS =\
  20. --style=java \
  21. --indent=force-tab \
  22. --attach-closing-while \
  23. --attach-inlines \
  24. --attach-classes \
  25. --indent-classes \
  26. --indent-modifiers \
  27. --indent-switches \
  28. --indent-cases \
  29. --indent-preproc-block \
  30. --indent-preproc-define \
  31. --indent-col1-comments \
  32. --pad-oper \
  33. --pad-comma \
  34. --unpad-paren \
  35. --delete-empty-lines \
  36. --align-pointer=name \
  37. --align-reference=name \
  38. --break-one-line-headers \
  39. --add-braces \
  40. --verbose \
  41. --formatted \
  42. --lineend=linux
  43. all: main
  44. clean:
  45. rm -f *.o ph7
  46. style:
  47. astyle $(ASTYLE_FLAGS) --recursive ./*.c,*.h
  48. main: $(OBJ)
  49. $(CC) $(OBJ) $(LIBS) -o ph7
  50. .c.o:
  51. $(CC) -c $(INCLUDES) $(CFLAGS) $<