Makefile 346 Bytes
Newer Older
Sergey Litvinov's avatar
Sergey Litvinov committed
1
2
3
4
5
include ../../../conf.mk
LD = $(CXX)
UDX_CXXFLAGS = `u.pkg-config udx_cpu --cflags`
UDX_LDFLAGS  = `u.pkg-config udx_cpu --libs`

Sergey Litvinov's avatar
Sergey Litvinov committed
6
7
main: main.o; libtool --mode=link $(LD) $< $(UDX_LDFLAGS) -o $@

Sergey Litvinov's avatar
Sergey Litvinov committed
8
9
10
11
12
main.o: main.cpp; $(CXX) $(CXXFLAGS) $(UDX_CXXFLAGS) $^ -c -o $@
install: main; u.install main $(BIN)

clean:; rm -f main main.o
.PHONY: install clean