Super Mario 64s source code (from a leak on 4chan so be careful)
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.

30 lines
831 B

5 years ago
  1. CC := gcc
  2. CFLAGS := -I . -Wall -Wextra -pedantic -std=c99 -O3 -s
  3. PROGRAMS := n64graphics n64graphics_ci mio0 n64cksum textconv patch_libultra_math iplfontutil
  4. n64graphics_SOURCES := n64graphics.c utils.c
  5. n64graphics_CFLAGS := -DN64GRAPHICS_STANDALONE
  6. n64graphics_ci_SOURCES := n64graphics_ci_dir/n64graphics_ci.c n64graphics_ci_dir/exoquant/exoquant.c n64graphics_ci_dir/utils.c
  7. mio0_SOURCES := libmio0.c
  8. mio0_CFLAGS := -DMIO0_STANDALONE
  9. n64cksum_SOURCES := n64cksum.c libmio0.c libsm64.c utils.c
  10. textconv_SOURCES := textconv.c utf8.c hashtable.c
  11. patch_libultra_math_SOURCES := patch_libultra_math.c
  12. iplfontutil_SOURCES := iplfontutil.c
  13. all: $(PROGRAMS)
  14. clean:
  15. $(RM) $(PROGRAMS)
  16. define COMPILE
  17. $(1): $($1_SOURCES)
  18. $(CC) $(CFLAGS) $($1_CFLAGS) $$^ -lm -o $$@
  19. endef
  20. $(foreach p,$(PROGRAMS),$(eval $(call COMPILE,$(p))))