summaryrefslogtreecommitdiff
path: root/Makefile
blob: ef62b53a427706a9248836161293963d92cd47b2 (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 -fPIC -c -Wall -o $@ $<

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

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