comparison trix/Makefile @ 21:bef3b1af6326

trix - package for arch
author Przemyslaw <prymula76@outlook.com>
date Sun, 31 Mar 2024 22:14:33 +0200
parents 2787f5e749ae
children
comparison
equal deleted inserted replaced
20:b637ac9c6605 21:bef3b1af6326
11 PACKAGES = $(LIBS) 11 PACKAGES = $(LIBS)
12 # CXXFLAGS += `pkg-config --cflags $(PACKAGES)` -mthreads 12 # CXXFLAGS += `pkg-config --cflags $(PACKAGES)` -mthreads
13 CFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DLINUX 13 CFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DLINUX
14 #LDFLAGS += -ldl 14 #LDFLAGS += -ldl
15 PREFIX = /usr 15 PREFIX = /usr
16 #EXAMPLE_BIN contains list of example binaries to build
17 16
18 all: $(APP_BIN) 17 all: $(APP_BIN)
19 18
20 $(APP_BIN): $(OBJF) 19 $(APP_BIN): $(OBJF)
21 $(CC) $(CXXFLAGS) $(OBJF) -o $(APP_BIN) `pkg-config --libs $(PACKAGES)` -g $(EXTRA_LIBS) 20 $(CC) $(CXXFLAGS) $(OBJF) -o $(APP_BIN) `pkg-config --libs $(PACKAGES)` -g $(EXTRA_LIBS)
25 24
26 %.o : %.C 25 %.o : %.C
27 $(CC) $(CFLAGS) -c $< -o $@ 26 $(CC) $(CFLAGS) -c $< -o $@
28 27
29 install: 28 install:
30 install -d $(PREFIX)/share/trix $(PREFIX)/share/trix/img $(PREFIX)/share/trix/img/bg 29 install -d $(DESTDIR)$(PREFIX)/bin $(DESTDIR)$(PREFIX)/share/trix $(DESTDIR)$(PREFIX)/share/trix/img $(DESTDIR)$(PREFIX)/share/trix/img/bg
31 install trix $(PREFIX)/bin 30 install trix $(DESTDIR)$(PREFIX)/bin
32 install ZapfHumanist.ttf $(PREFIX)/share/trix 31 install ZapfHumanist.ttf $(DESTDIR)$(PREFIX)/share/trix
33 install img/*.bmp $(PREFIX)/share//trix/img 32 install img/*.bmp $(DESTDIR)$(PREFIX)/share//trix/img
34 install img/bg/*.txt $(PREFIX)/share/trix/img/bg 33 install img/bg/*.txt $(DESTDIR)$(PREFIX)/share/trix/img/bg
35 install img/bg/*.jpeg $(PREFIX)/share/trix/img/bg 34 install img/bg/*.jpeg $(DESTDIR)$(PREFIX)/share/trix/img/bg
36 install img/*.png $(PREFIX)/share/trix/img 35 install img/*.png $(DESTDIR)$(PREFIX)/share/trix/img
37 install Trix.desktop /usr/share/applications 36 install Trix.desktop $(DESTDIR)/usr/share/applications
38 37
39 38
40 uninstall: 39 uninstall:
41 rm $(PREFIX)/bin/trix 40 rm $(PREFIX)/bin/trix
42 rm -r $(PREFIX)/share/trix 41 rm -r $(PREFIX)/share/trix