a bit cleaner, also build dbgsh

This commit is contained in:
mrdudz
2025-06-12 21:31:05 +02:00
parent b2616eac0d
commit 505160f169
3 changed files with 17 additions and 5 deletions

View File

@@ -29,7 +29,7 @@ jobs:
run: make -j2 bin USER_CFLAGS=-Werror run: make -j2 bin USER_CFLAGS=-Werror
- name: Build the dbginfo example - name: Build the dbginfo example
shell: bash shell: bash
run: make -j2 -C src dbginfo run: make -j2 -C src test
- name: Build the utilities. - name: Build the utilities.
shell: bash shell: bash
run: make -j2 util run: make -j2 util

View File

@@ -50,7 +50,7 @@ test:
# GNU "check" target, which runs all tests # GNU "check" target, which runs all tests
check: check:
@$(MAKE) -C .github/checks checkstyle --no-print-directory @$(MAKE) -C .github/checks checkstyle --no-print-directory
@$(MAKE) -C src dbginfo --no-print-directory @$(MAKE) -C src test --no-print-directory
@$(MAKE) test @$(MAKE) test
@$(MAKE) -C targettest platforms --no-print-directory @$(MAKE) -C targettest platforms --no-print-directory
@$(MAKE) -C samples platforms --no-print-directory @$(MAKE) -C samples platforms --no-print-directory

View File

@@ -21,7 +21,7 @@ PROGS = ar65 \
sim65 \ sim65 \
sp65 sp65
.PHONY: all mostlyclean clean install zip avail unavail bin $(PROGS) dbginfo .PHONY: all mostlyclean clean install zip avail unavail bin $(PROGS)
.SUFFIXES: .SUFFIXES:
@@ -168,7 +168,19 @@ $(eval $(call OBJS_template,common))
$(foreach prog,$(PROGS),$(eval $(call PROG_template,$(prog)))) $(foreach prog,$(PROGS),$(eval $(call PROG_template,$(prog))))
dbginfo:
$(eval $(call PROG_template,dbginfo)) .PHONY: dbginfo dbgsh test
test: dbginfo dbgsh
$(eval $(call OBJS_template,dbginfo))
dbginfo: $(dbginfo_OBJS)
../wrk/dbgsh$(EXE_SUFFIX): $(dbginfo_OBJS) ../wrk/common/common.a
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
dbgsh: ../wrk/dbgsh$(EXE_SUFFIX)
-include $(DEPS) -include $(DEPS)