This commit is contained in:
interfiberschool 2023-03-16 18:04:29 +00:00
parent d5ec6494be
commit 7240505bd1
10 changed files with 128 additions and 1 deletions

17
Makefile Normal file
View file

@ -0,0 +1,17 @@
exampleUnix: examples/unix/main.c examples/unix/lib.c src/dlopen.c
## BUILD UNIX EXAMPLES ##
mkdir -p bin
gcc examples/unix/main.c src/dlopen.c -o bin/exampleUnix -ldl
gcc examples/unix/lib.c -shared -o bin/exampleUnixLib.dll
exampleWin: examples/win/main.c examples/win/lib.c src/dlopen.c
## BUILD WINDOWS EXAMPLES ##
mkdir -p bin
x86_64-w64-mingw32-gcc examples/win/main.c src/dlopen.c -o bin/exampleWin
x86_64-w64-mingw32-gcc examples/win/lib.c -shared -o bin/exampleWinLib.dll
all: exampleUnix exampleWin