Skip to content

Commit

Permalink
Makefile tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
attipaci committed Sep 1, 2024
1 parent 67565bd commit 4f3ae34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,11 @@ $(OBJ)/%.o: %.c dep/%.d $(OBJ) Makefile

# Share librarry recipe
$(LIB)/%.so.$(SO_VERSION) : | $(LIB) Makefile
$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $^ -shared -fPIC -Wl,-soname,$(subst $(LIB)/,,$@) $(LD_FLAGS)
$(CC) -o $@ $(CPPFLAGS) $(CFLAGS) $^ -shared -fPIC -Wl,-soname,$(subst $(LIB)/,,$@) $(LDFLAGS)

# Unversioned shared libs (for linking against)
$(LIB)/lib%.so:
@rm -f $@
ln -sr $< $@

# Static library: novas.a
Expand Down

0 comments on commit 4f3ae34

Please sign in to comment.