Kinda extra credit ex12
This commit is contained in:
parent
32e70e96ce
commit
df5d4f5a1f
@ -15,16 +15,16 @@ build: $(BUILD_TARGETS)
|
|||||||
|
|
||||||
.PHONY: gtest
|
.PHONY: gtest
|
||||||
gtest:
|
gtest:
|
||||||
@$(foreach bt, \
|
@$(foreach bt, $(TEST_TARGETS), make .gtest.$(bt) &&) \
|
||||||
$(TEST_TARGETS), \
|
|
||||||
printf '\n==> $(bt)\n' && $(GDBRUN) ./$(bt) && \
|
|
||||||
) \
|
|
||||||
printf '\ngYAY\n'
|
printf '\ngYAY\n'
|
||||||
|
|
||||||
|
.gtest.%:
|
||||||
|
printf '\n==> %s\n' "$*" && $(GDBRUN) ./$*
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test:
|
test:
|
||||||
@$(foreach bt, \
|
@$(foreach bt, $(TEST_TARGETS), make .test.$(bt) &&) \
|
||||||
$(TEST_TARGETS), \
|
|
||||||
printf '\n==> %s\n' "$(bt)" && ./$(bt) && \
|
|
||||||
) \
|
|
||||||
printf '\nYAY\n'
|
printf '\nYAY\n'
|
||||||
|
|
||||||
|
.test.%:
|
||||||
|
printf '\n==> %s\n' "$*" && ./$*
|
||||||
|
@ -7,7 +7,7 @@ int main(int argc, char *argv[])
|
|||||||
char full_name[] = {
|
char full_name[] = {
|
||||||
'Z', 'e', 'd',
|
'Z', 'e', 'd',
|
||||||
' ', 'A', '.', ' ',
|
' ', 'A', '.', ' ',
|
||||||
'S', 'h', 'a', 'w',
|
'S', 'h', 'a', 'w', '\0',
|
||||||
};
|
};
|
||||||
|
|
||||||
// WARNING: On some systems you may have to change the
|
// WARNING: On some systems you may have to change the
|
||||||
|
Loading…
Reference in New Issue
Block a user