1
0

Initial commit

This commit is contained in:
2024-12-30 19:35:44 +01:00
commit ab0b73af5b
8 changed files with 230 additions and 0 deletions

17
proj/test1/Makefile Normal file
View File

@@ -0,0 +1,17 @@
CC=gcc
CFLAGS=-std=c99 -pedantic -Wall -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_POSIX_C_SOURCE=200809L -g
LDFLAGS=-lc
.PHONY: all clean
all: default
default: main test.so
test.so: src
$(CC) -shared -fPIC -o $@ $< $(CFLAGS) $(LDFLAGS)
main: src
$(CC) -o $@ $< $(CFLAGS) $(LDFLAGS)
clean:
rm -rf main test.so