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 (23 lines) | stat: -rw-r--r-- 344 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
TARGET=module
OBJS=module.o

#######################
CFLAGS=-Wall -O2 -g
LDFLAGS=
LIBS=-ldotconf -ldl
CC=gcc

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

all: $(TARGET) my_module.so

$(TARGET): $(OBJS)
	$(CC) -o $@ $< $(LDFLAGS) $(LIBS)

my_module.so: my_module.o
	$(CC) -o $@ $< -rdynamic -shared

clean:
	rm -f $(OBJS) $(TARGET) my_module.so *.o