summaryrefslogtreecommitdiffstats
path: root/tools/dmidecode/Makefile
blob: fe53436f40a7ac5cadfc0e9a6bc01bfa1c8db14a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CFLAGS=-Wall -O # -g -DDEBUG
TARGETS=dmidecode

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

ifeq (i386,$(ARCH))

dmidecode: dmidecode.o

else
dmidecode: not_handled.c
	gcc -o $@ $<
endif

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