How to make library generic?

This commit is contained in:
2024-02-05 00:45:30 +05:30
parent dee48d5d1b
commit 19e67acd4c
26 changed files with 1547 additions and 0 deletions

14
ProgrammableLib/Makefile Normal file
View File

@@ -0,0 +1,14 @@
TARGET: exe
libdll.a: dll.o
ar rs libdll.a dll.o
dll.o: dll.c
gcc -c -I . dll.c -o dll.o
exe: application.o libdll.a
gcc application.o -o exe -L . -ldll
application.o: application.c
gcc -c -I . application.c -o application.o
clean:
rm *.o
rm libdll.a
rm exe