Skip to content

Commit

Permalink
build: fix build out of tree
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Nov 21, 2024
1 parent 169a72e commit 61070ed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion mk/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ CFLAGS+= -Werror=return-type
DEPFILES_NONEMPTY= $(DEPFILES) /nonexistent
-include $(DEPFILES_NONEMPTY:=)

.SUFFIXES: .pico .in .bin .binin
.SUFFIXES: .pico .in .bin .binin .so.1 .so.1in

.c.o:
$(CC) -Wall -Wextra -std=gnu11 -D_GNU_SOURCE=1 -MT $@ -MD -MP -MF $*.Tpo -o $@ -c $(CFLAGS) $(LOCAL_CFLAGS) $<
Expand All @@ -31,3 +31,6 @@ DEPFILES_NONEMPTY= $(DEPFILES) /nonexistent

.binin.bin:
cp $< $@

.so.1in.so.1:
cp $< $@
5 changes: 4 additions & 1 deletion tests/Makefile.autosetup
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ TESTS_SHELL_BINS= \
frontend/macos.bin \
frontend/macos106.bin \
frontend/macos150.bin \
frontend/macosfat.bin
frontend/macosfat.bin \
frontend/libtestfbsd.so.1 \
frontend/libtest2fbsd.so.1 \
frontend/libfoo.so.1

lua_OBJS= lib/lua.o
merge_OBJS= lib/merge.o
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 61070ed

Please sign in to comment.