summaryrefslogtreecommitdiffstats
path: root/utils/regtools/Makefile
blob: 5dad380e7b579235be71a1691d2bc8dcc590ce54 (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
27
28
DEFINES=
CC=gcc
CXX=g++
LD=g++
CFLAGS=-g -std=c99 -W -Wall `xml2-config --cflags` $(DEFINES)
CXXFLAGS=-g -W -Wall `xml2-config --cflags` $(DEFINES)
LDFLAGS=`xml2-config --libs`
BINS= tester headergen hwemulgen

all: $(BINS)

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

%.o: %.cpp
	$(CXX) $(CXXFLAGS) -c -o $@ $<

headergen: headergen.o desc_parser.o
	$(LD) -o $@ $^ $(LDFLAGS)

hwemulgen: hwemulgen.o desc_parser.o
	$(LD) -o $@ $^ $(LDFLAGS)

tester: tester.o desc_parser.o
	$(LD) -o $@ $^ $(LDFLAGS)

clean:
	rm -fr *.o $(BINS)