Skip to content

Commit

Permalink
add static library build
Browse files Browse the repository at this point in the history
  • Loading branch information
moggers87 committed Mar 21, 2022
1 parent 1164d7f commit 4c94063
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ ifdef DEBUG
CFLAGS += -g
endif

all: libhl hl libs
all: libhl hl libs libhl.a

install:
$(UNAME)==Darwin && make uninstall
Expand Down Expand Up @@ -163,6 +163,9 @@ mysql: ${MYSQL} libhl
mesa:
(cd libs/mesa && make)

libhl.a: ${LIB} ${FMT} ${SDL} ${SSL} ${OPENAL} ${UI} ${UV} ${MYSQL}
ar rcs $@ $^

release: release_version release_$(RELEASE_NAME)

release_version:
Expand Down Expand Up @@ -223,10 +226,13 @@ codesign_osx:
.c.o :
${CC} ${CFLAGS} -o $@ -c $<

clean_a:
rm -f libhl.a

clean_o:
rm -f ${STD} ${BOOT} ${RUNTIME} ${PCRE} ${HL} ${FMT} ${SDL} ${SSL} ${OPENAL} ${UI} ${UV} ${HL_DEBUG}

clean: clean_o
clean: clean_o clean_a
rm -f hl hl.exe libhl.$(LIBEXT) *.hdll

.PHONY: libhl hl hlc fmt sdl libs release

0 comments on commit 4c94063

Please sign in to comment.