Skip to content

Commit

Permalink
Makefile: Build fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keirf committed Jun 4, 2020
1 parent 1f75967 commit 5950c18
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 16 deletions.
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
include base/Rules.mk

SUBDIRS := base host_tools overscan testkit inflate
SUBDIRS := base inflate host_tools overscan testkit inflate

.PHONY: $(SUBDIRS)

.PHONY: all $(SUBDIRS)
all: $(SUBDIRS)

host_tools overscan testkit:
overscan testkit: inflate

$(SUBDIRS):
$(MAKE) -C $@ all

clean::
Expand Down
2 changes: 2 additions & 0 deletions base/Makefile
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
include ../base/Rules.mk

all:
2 changes: 1 addition & 1 deletion base/Rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ HOSTCFLAGS += -MMD -MF .$(@F).d

.DEFAULT_GOAL := all

.PHONY: clean
.PHONY: all clean

.SECONDARY:

Expand Down
1 change: 0 additions & 1 deletion host_tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ include ../base/Rules.mk

TARGETS := hunk_loader kickconv

.PHONY: all
all: $(TARGETS)

%: %.c
Expand Down
9 changes: 0 additions & 9 deletions inflate/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,6 @@ test_inflate: degzip test_inflate.o
$(CC) -o $@ $@.o $(LDFLAGS)
$(PYTHON) test_inflate.py *.[cSo] *.asm ../cracking/protections/* ../cracking/cracks/nzs/gnu_c/* ../testkit/*

.PHONY: a
a:
xdftool ao.adf unpack .
$(PYTHON) ./pack_exe.py atlantis1/atlantis foo
cp foo atlantis1/atlantis
rm -rf a.adf
xdftool a.adf pack atlantis1
rm -rf atlantis1* foo

%.o: %.S
$(CC) -o $@ -c $< $(AFLAGS)

Expand Down
1 change: 0 additions & 1 deletion overscan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ OBJS += overscan.o

include ../base/Rules.mk

.PHONY: all
all: overscan.adf

overscan.adf: bootblock.bin overscan.bin
Expand Down
1 change: 0 additions & 1 deletion testkit/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ include ../base/Rules.mk
# build.o must be refreshed on every build
.PHONY: build.c

.PHONY: all
all: $(NAME)-v$(VER).zip

build.o: CFLAGS += -DVER="\"$(VER)\""
Expand Down

0 comments on commit 5950c18

Please sign in to comment.