-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (26 loc) · 812 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
.SUFFIXES: .c
SHELL = /bin/sh
CC = gcc
CFLAGS += -O3 -flto -Wall -ffast-math -std=gnu90
RM_F = rm -f
INSTALL = install
INSTALL_DIR = $(INSTALL) -p -d -o root -g root -m 755
INSTALL_PROGRAM = $(INSTALL) -p -o root -g root -m 755
INSTALL_DATA = $(INSTALL) -p -o root -g root -m 644
prefix = /usr
exec_prefix = $(prefix)
bindir = $(exec_prefix)/bin
export
all: unlzx$(EXEEXT)
unlzx$(EXEEXT): unlzx.c
$(CC) -flto -x c unlzx.c $(CFLAGS) -o unlzx$(EXEEXT)
clean:
-$(RM_F) unlzx$(EXEEXT)
install: unlzx$(EXEEXT)
$(INSTALL_DIR) $(DESTDIR)$(bindir)
$(INSTALL_DIR) $(DESTDIR)$(man1dir)
-@$(RM_F) $(DESTDIR)$(bindir)/unlzx$(EXEEXT)
-@$(RM_F) $(DESTDIR)$(man1dir)/unlzx.1
$(INSTALL_PROGRAM) unlzx$(EXEEXT) $(DESTDIR)$(bindir)
uninstall:
-$(RM_F) $(DESTDIR)$(bindir)/unlzx$(EXEEXT)