mirror of
https://github.com/TokTok/c-toxcore
synced 2026-06-07 15:23:13 +00:00
432ab60c00
This makefile is untested, so hope is the strategy here.
27 lines
541 B
Makefile
27 lines
541 B
Makefile
TARGETS = libtoxcore.a libtoxcore-minimal.a
|
|
|
|
all: $(TARGETS)
|
|
|
|
libtoxcore.o: $(wildcard toxcore-*av.c)
|
|
$(CC) -c -o $@ $< \
|
|
-O2 \
|
|
-Wno-discarded-qualifiers \
|
|
-fPIC \
|
|
-Wl,-Bstatic \
|
|
$(shell pkg-config --cflags --libs libsodium) \
|
|
-Wl,-Bdynamic \
|
|
$(shell pkg-config --cflags --libs opus vpx) \
|
|
-pthread
|
|
|
|
libtoxcore-minimal.o: $(wildcard toxcore-*core.c)
|
|
$(CC) -c -o $@ $< \
|
|
-O2 \
|
|
-Wno-discarded-qualifiers \
|
|
-fPIC \
|
|
-Wl,-Bstatic \
|
|
$(shell pkg-config --cflags --libs libsodium) \
|
|
-pthread
|
|
|
|
%.a: %.o
|
|
$(AR) rcs $@ $^
|