-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (29 loc) · 750 Bytes
/
Makefile
File metadata and controls
36 lines (29 loc) · 750 Bytes
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
35
36
#----------------------------------------------------------------------
#
# Makefile for my library of useful C routines directory.
#
#----------------------------------------------------------------------
# $Id: Makefile,v 1.13 2021/03/25 19:21:20 cmb Exp $
#----------------------------------------------------------------------
INCDIR = /home/cmb/include
LIBDIR = /home/cmb/lib
CC = gcc
CFLAGS = -g -Wall -I. -fPIC
LDFLAGS = -L$(LIBDIR)
LOADLIBES = -lcmb
OBJS = FileUtils.o \
Curses.o \
CursesLargeFont.o \
Colours.o \
Misc.o \
Images.o \
cmb.o
all: cmb.a
cmb.a : $(OBJS)
ar -rs cmb.a $(OBJS)
$(OBJS) : cmb.h
clean:
rm -f $(OBJS) *~ *.o *.a
install : all
cp -f cmb.h $(INCDIR)
cp -f cmb.a $(LIBDIR)/libcmb.a