File: Makefile

package info (click to toggle)
dotconf 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 488 kB
  • sloc: ansic: 2,265; makefile: 186; sh: 39
file content (22 lines) | stat: -rw-r--r-- 424 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS=-Wall -O2 -g
LDFLAGS=
LIBS=-ldotconf ../libpool/libpool.a -ldl
CC=gcc

%.o: %.c
	$(CC) $(CFLAGS) -I../libpool -o $@ -c $<

all: duplicate first_module.so second_module.so

duplicate: duplicate.o
	$(CC) -o $@ $< $(LDFLAGS) $(LIBS)

first_module.so: first_module.o
	$(CC) -o $@ $< -rdynamic -shared $(LIBS)
second_module.so: second_module.o
	$(CC) -o $@ $< -rdynamic -shared $(LIBS)

clean:
	rm -f *.so *.o duplicate