aboutsummaryrefslogtreecommitdiffstats
path: root/l4arg/Makefile
blob: e6502f342f1fa2860c7b9f744ff85535a584ed8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC=cc
AR=ar
RM=rm -f
INSTALL=install -m 644
CFLAGS=-Wall -g -I. -I../l4darr
OBJ=toargv.o qarg.o
LIBFILE=libl4arg.a
DESTDIR=/
PREFIX=/usr/local
LIBDIR=$(DESTDIR)/$(PREFIX)/lib

.PHONY: all clean

all: $(LIBFILE)
$(LIBFILE): $(OBJ)
    $(AR) rcs $(LIBFILE) $(OBJ)
clean:
    $(RM) $(LIBFILE) $(OBJ)
install:
    mkdir -p $(LIBDIR)
    $(INSTALL) $(LIBFILE) $(LIBDIR)
uninstall:
    $(RM) $(LIBDIR)/$(LIBFILE)