Skip to content

Commit

Permalink
build: don't use the '|' GNU extension
Browse files Browse the repository at this point in the history
  • Loading branch information
rnpnr committed Aug 17, 2023
1 parent 4ca7119 commit 09ba77a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,13 @@ config.h:
config.mk:
@touch $@

obj:
obj/.tstamp:
mkdir obj
touch obj/.tstamp

obj/main.o: config.h | obj
obj/main.o: config.h

$(OBJ): config.mk | obj
$(OBJ): config.mk obj/.tstamp
${CC} ${CFLAGS} ${CFLAGS_VIS} ${CFLAGS_EXTRA} -o $@ -c $(@:obj/%.o=%.c)

-include obj/*.d
Expand Down

0 comments on commit 09ba77a

Please sign in to comment.