summaryrefslogtreecommitdiffstats
path: root/tools/ddcprobe/Makefile
blob: 83f3e3df551f6faf2b5194a0b00ee85ec5564514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS=-Wall -O # -g -DDEBUG
LDFLAGS = -lm
TARGETS=ddcxinfos

ARCH := $(patsubst i%86,i386,$(shell uname -m))
ARCH := $(patsubst sparc%,sparc,$(ARCH))

ifeq (i386,$(ARCH))
OBJS = ddcxinfos.o vesamode.o vbe.o lrmi.o
endif
ifeq (x86_64,$(ARCH))
OBJS = ddcxinfos.o vesamode.o vbe.o
endif
ifeq (,$(OBJS))
OBJS = not_handled.o
endif

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

clean:
	$(RM) $(TARGETS) *.o core