-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rules
32 lines (20 loc) · 684 Bytes
/
Rules
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
29
30
31
OFILES:=$(CFILES:.C=.o)
%.o: %.C
@echo `RaiiBuild` `RaiiBuild --cplusplusflags` -fopenmp -c $< -o $@ -I/usr/include/exiv2 `pkg-config --cflags Magick++`
@`RaiiBuild` `RaiiBuild --cplusplusflags` -fopenmp -c $< -o $@ -I/usr/include/exiv2 `pkg-config --cflags Magick++`
ifndef PROJECT
all install clean:
@echo Define PROJECT variable
@false
else
TARGET=lib$(PROJECT)_$(MODULE).so
all: $(TARGET)
$(TARGET): $(OFILES)
@echo `RaiiBuild` `RaiiBuild --linkflags` $(OFILES) -o $@
@`RaiiBuild` `RaiiBuild --linkflags` -lcurl $(OFILES) -o $@
clean:
rm -f *~ $(OFILES) $(TARGET)
install: all
install -d $(DESTDIR)/usr/lib/
$(SU0) install $(TARGET) $(DESTDIR)/usr/lib/
endif