summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/Makefile
blob: 0b96f3c44ad76b8b50ab167ca7812d2f56748cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
CC	= gcc
CFLAGS	= -O -Wall # -g -DDEBUG
INCS	= -I.
LDFLAGS	= -lm -L. -lint10 -lx86emu
OBJS	= ddcxinfos.o vesamode.o vbe.o
LIBS	= libint10.a libx86emu.a
TARGETS	= ddcxinfos

all: $(TARGETS)

ddcxinfos: $(OBJS) $(LIBS)
	$(CC) -o $@ $(OBJS) $(CFLAGS) $(LDFLAGS)

libx86emu.a:
	$(MAKE) -C x86emu

libint10.a: libx86emu.a
	$(MAKE) -C int10

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

clean:
	$(MAKE) -C int10 clean
	$(MAKE) -C x86emu clean
	$(RM) $(TARGETS) $(LIBS) *.o core