summaryrefslogtreecommitdiff
path: root/Makefile
blob: 623a28dfb6e2c605b5a88eed9f1562a9d4cc1f11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
sources = \
	  cvt.c \
	  displayid.c \
	  edid.c \
	  gtf.c \
	  mode.c \
	  monitor.c

objects = $(sources:.c=.o)

all: libminitru.so.0

clean:
	rm -f $(objects)

.c.o:
	gcc $(CFLAGS) -fPIC -c -Wall -o $@ $<

$(sources): minitru-int.h
minitru-int.h: minitru.h

libminitru.so.0: $(sources:.c=.o)
	gcc $(LDFLAGS) -shared -Wl,-soname,$@ -o $@ $^ -lm