| 1 | # |
| 2 | |
| 3 | ROOT := ../.. |
| 4 | include $(ROOT)/Makefile.config |
| 5 | |
| 6 | ###################################################################### |
| 7 | |
| 8 | .DELETE_ON_ERROR: |
| 9 | all: memory/platform/rtld-flags.$(TARGET_OS).sml |
| 10 | |
| 11 | ifeq (mingw, $(TARGET_OS)) |
| 12 | CFLAGS := -Wall -I$(ROOT)/package/msys2 |
| 13 | else |
| 14 | CFLAGS := -Wall |
| 15 | endif |
| 16 | |
| 17 | memory/platform/rtld-flags.$(TARGET_OS).sml: gen-rtld-flags.c |
| 18 | $(CC) $(CFLAGS) -o gen-rtld-flags gen-rtld-flags.c |
| 19 | ./gen-rtld-flags > memory/platform/rtld-flags.$(TARGET_OS).sml |
| 20 | $(RM) gen-rtld-flags$(EXE) |
| 21 | |
| 22 | $(eval $(MK_COMMON_GOALS)) |