Fix ubase-box target

This commit is contained in:
sin 2013-09-03 15:13:21 +01:00
parent 348f771fec
commit b682ecb3b5
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ ubase-box: $(SRC) util.a
@for f in $(SRC); do echo "else if(!strcmp(s, \"`basename $$f .c`\")) `basename $$f .c`_main(argc, argv);" >> build/$@.c; done
@echo 'else {' >> build/$@.c
@for f in $(SRC); do echo "printf(\"`basename $$f .c`\"); putchar(' ');" >> build/$@.c; done
@echo "putchar('\\n'); }; return EXIT_SUCCESS; }" >> build/$@.c
@echo "putchar(0xa); }; return EXIT_SUCCESS; }" >> build/$@.c
@echo LD $@
@$(LD) -o $@ build/*.c util.a $(CFLAGS) $(LDFLAGS)
@rm -r build