Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
surma committed Aug 7, 2024
1 parent 2bd1eec commit c308108
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions codecs/mozjpeg/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ OUT_WASM := $(OUT_JS:.js=.wasm)

all: $(OUT_JS)

# Define dependencies for all variations of build artifacts.
$(filter enc/%,$(OUT_JS)): enc/mozjpeg_enc.cpp
$(filter dec/%,$(OUT_JS)): dec/mozjpeg_dec.cpp

%.js:
$(CXX) \
-I ${MOZJPEG}/include \
-L ${MOZJPEG}/lib \
${CXXFLAGS} \
${LDFLAGS} \
--bind \
-s ENVIRONMENT=$(ENVIRONMENT) \
-s EXPORT_ES6=1 \
-o $@ \
${MOZJPEG}/lib/libjpeg.a \
-ljpeg \
${MOZJPEG}/lib/rdswitch.o \
$+

0 comments on commit c308108

Please sign in to comment.