mirror of https://github.com/mananapr/cfiles
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
300 B
24 lines
300 B
CC = gcc
|
|
CFLAGS = -I. -Wall
|
|
LIBS = -lncursesw
|
|
SRCS = cf.c
|
|
OBJS = $(SRCS: .c = .o)
|
|
PROG = cfiles
|
|
DEST = /usr/local/bin
|
|
|
|
all: $(OBJS)
|
|
$(CC) $(CFLAGS) $(LIBS) $(OBJS) -o $(PROG)
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
clean:
|
|
rm *.o
|
|
rm *~
|
|
|
|
install:
|
|
cp -v $(PROG) $(DEST)
|
|
|
|
uninstall:
|
|
rm -v "$(DEST)/$(PROG)"
|