mirror of git://git.suckless.org/ubase
Fix ubase-box target
This commit is contained in:
parent
348f771fec
commit
b682ecb3b5
2
Makefile
2
Makefile
|
@ -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
|
@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
|
@echo 'else {' >> build/$@.c
|
||||||
@for f in $(SRC); do echo "printf(\"`basename $$f .c`\"); putchar(' ');" >> build/$@.c; done
|
@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 $@
|
@echo LD $@
|
||||||
@$(LD) -o $@ build/*.c util.a $(CFLAGS) $(LDFLAGS)
|
@$(LD) -o $@ build/*.c util.a $(CFLAGS) $(LDFLAGS)
|
||||||
@rm -r build
|
@rm -r build
|
||||||
|
|
Loading…
Reference in New Issue