• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1srcs = $(wildcard *.c)
2libs = $(srcs:.c=.so)
3
4flags = -fPIC
5
6all:	$(libs)
7
8clean:
9	rm $(libs)
10
11no_debug_info.so: no_debug_info.c Makefile
12	$(CC) $< -shared $(flags) -o $@
13
14link_against_me.so: link_against_me.c
15	$(CC) $< -shared $(flags) -o $@
16
17%.so: %.c Makefile link_against_me.so
18	$(CC) $< -shared $(flags) -g -o $@ link_against_me.so
19
20