Skip to content

Commit

Permalink
add Makefile for toxcore_amalgamation
Browse files Browse the repository at this point in the history
  • Loading branch information
zoff99 committed Jul 6, 2023
1 parent 21ec09e commit 4c60298
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions amalgamation/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

TARGET = libtoxcore.a

all: $(TARGET)

libtoxcore.o: toxcore_amalgamation.c
$(CC) -c -o $@ $< -O2 -Wno-discarded-qualifiers -fPIC -Wl,-Bstatic $(shell pkg-config --cflags --libs libsodium x264) -Wl,-Bdynamic $(shell pkg-config --cflags --libs opus vpx libavcodec libavutil) -pthread

$(TARGET): libtoxcore.o
$(AR) rcs $@ $^



0 comments on commit 4c60298

Please sign in to comment.