Skip to content

Commit

Permalink
Add windows target to makevars.win
Browse files Browse the repository at this point in the history
From the hellorust template
  • Loading branch information
dirkschumacher committed Jan 13, 2020
1 parent 12fd02b commit cb96f29
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Makevars.win
@@ -1,4 +1,5 @@
LIBDIR = myrustlib/target/release
TARGET = $(subst 64,x86_64,$(subst 32,i686,$(WIN)))-pc-windows-gnu
LIBDIR = myrustlib/target/$(TARGET)/release
STATLIB = $(LIBDIR)/myrustlib.lib
PKG_LIBS = -L$(LIBDIR) -lmyrustlib -lws2_32 -ladvapi32 -luserenv

Expand All @@ -7,7 +8,7 @@ all: clean
$(SHLIB): $(STATLIB)

$(STATLIB):
cargo build --release --manifest-path=myrustlib/Cargo.toml
cargo build --target=$(TARGET) --release --manifest-path=myrustlib/Cargo.toml

clean:
rm -Rf $(SHLIB) $(STATLIB) $(OBJECTS) myrustlib/target

0 comments on commit cb96f29

Please sign in to comment.