-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
37 lines (26 loc) · 852 Bytes
/
Makefile
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
32
33
34
35
36
CXX = g++
GIMPTOOL = gimptool-2.0
GIMP_LDFLAGS=`$(GIMPTOOL) --libs`
GIMP_CFLAGS=`$(GIMPTOOL) --cflags`
CXXFLAGS=$(GIMP_CFLAGS) -O2 -fno-common -ffast-math -frename-registers -fomit-frame-pointer -Wall -Wextra -pedantic -std=c++0x -DNDEBUG
LDFLAGS=$(GIMP_LDFLAGS) -lm #-lboost_thread
OBJS=resynth.o unufo_geometry.o unufo_patch.o
all: resynth
@echo
@echo 'Now type "make install" to install resynthesizer'
@echo
install: resynth smart-remove.scm
$(GIMPTOOL) --install-bin resynth
$(GIMPTOOL) --install-script smart-remove.scm
@echo
@echo After restarting the Gimp you should find the
@echo following items in the pop-up image menu:
@echo
@echo " * Filters/Enhance/Heal selection"
@echo
resynth: $(OBJS)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
$(OBJS): %.o: %.cc
$(CXX) -c $(CXXFLAGS) -o $@ $^
clean:
-rm -f *~ *.o core resynth