Skip to content

Commit

Permalink
play with makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ntBre committed Jul 9, 2024
1 parent 01dfd8b commit 6bc6b8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,11 @@ SRC = $(addprefix dwm/,drw.c dwm.c util.c)
dwm/libdwm.so: $(SRC) dwm/config.h dwm/dwm.h
cd dwm ; \
clang -fPIC -shared -o $(notdir $@ $(SRC)) $(CPPFLAGS) $(LDFLAGS) $(INCS)

rust-src := $(shell find src -name '*.rs')

target/release/rwm: dwm/libdwm.so $(rust-src)

build: target/release/rwm

.PHONY: build

0 comments on commit 6bc6b8f

Please sign in to comment.