mirror of
https://github.com/zeldaret/oot.git
synced 2024-11-25 09:45:02 +00:00
ba0c6965ca
* remove zap * git subrepo clone https://github.com/zeldaret/ZAPD.git tools/ZAPD subrepo: subdir: "tools/ZAPD" merged: "cd4a8760b" upstream: origin: "https://github.com/zeldaret/ZAPD.git" branch: "master" commit: "cd4a8760b" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "2f68596" * remove thanks.md * zap2 -> zapd and spec changes * remove submodule init
28 lines
652 B
Makefile
28 lines
652 B
Makefile
CC := gcc
|
|
CFLAGS := -Wall -Wextra -pedantic -std=c99 -g -O2
|
|
PROGRAMS := yaz0 makeromfs elf2rom mkldscript vtxdis
|
|
ZAPD := ZAPD/ZAPD.out
|
|
|
|
all: $(PROGRAMS)
|
|
cd ZAPD && $(MAKE)
|
|
|
|
clean:
|
|
$(RM) $(PROGRAMS)
|
|
$(RM) ZAPD/ZAPD.out
|
|
# Need to clean the above line later...
|
|
|
|
mkldscript_SOURCES := mkldscript.c util.c
|
|
elf2rom_SOURCES := elf2rom.c elf32.c n64chksum.c util.c
|
|
yaz0_SOURCES := yaz0tool.c yaz0.c util.c
|
|
makeromfs_SOURCES := makeromfs.c n64chksum.c util.c
|
|
vtxdis_SOURCES := vtxdis.c
|
|
|
|
#$(ZAPD):
|
|
# cd ZAPD && $(MAKE)
|
|
|
|
define COMPILE =
|
|
$(1): $($1_SOURCES)
|
|
$(CC) $(CFLAGS) $$^ -o $$@
|
|
endef
|
|
|
|
$(foreach p,$(PROGRAMS),$(eval $(call COMPILE,$(p))))
|