Initial commit
This commit is contained in:
17
proj/test1/Makefile
Normal file
17
proj/test1/Makefile
Normal 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
|
||||
Reference in New Issue
Block a user