chamesle

chamesle.org: the site of Chamesle, a small Linux distribution
git clone https://github.com/tortr-rs/chamesle
Log | Files | Refs | README

Makefile (517B)


      1 # launchel
      2 VERSION = 0.1.1
      3 PREFIX = /usr/local
      4 
      5 PKGS = x11 xft fontconfig
      6 CFLAGS += -std=c99 -Wall -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -DVERSION=\"$(VERSION)\" `pkg-config --cflags $(PKGS)`
      7 LDLIBS += `pkg-config --libs $(PKGS)`
      8 
      9 launchel: launchel.c
     10 	$(CC) $(CFLAGS) -o $@ launchel.c $(LDFLAGS) $(LDLIBS)
     11 
     12 install: launchel
     13 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     14 	install -m 755 launchel $(DESTDIR)$(PREFIX)/bin/
     15 
     16 uninstall:
     17 	rm -f $(DESTDIR)$(PREFIX)/bin/launchel
     18 
     19 clean:
     20 	rm -f launchel
     21 
     22 .PHONY: install uninstall clean