forked from erkyrath/glkterm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (37 loc) · 1.31 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Unix Makefile for GlkTerm library
# This generates two files. One, of course, is libglkterm.a -- the library
# itself. The other is Make.glkterm; this is a snippet of Makefile code
# which locates the glkterm library and associated libraries (such as
# ncurses.)
#
# When you install glkterm, you must put libglkterm.a in the lib directory,
# and glk.h, glkstart.h, and Make.glkterm in the include directory.
# Pick a C compiler.
#CC = cc
CC = gcc -ansi
# You may need to set directories to pick up the ncurses library.
#INCLUDEDIRS = -I/usr/5include
#LIBDIRS = -L/usr/5lib
LIBS = -lncurses
OPTIONS = -O
CFLAGS = $(OPTIONS) $(INCLUDEDIRS)
GLKLIB = libglkterm.a
GLKTERM_OBJS = \
main.o gtevent.o gtfref.o gtgestal.o gtinput.o \
gtmessag.o gtmessin.o gtmisc.o gtstream.o gtstyle.o \
gtw_blnk.o gtw_buf.o gtw_grid.o gtw_pair.o gtwindow.o \
gtschan.o gtblorb.o cgunicod.o cgdate.o gi_dispa.o gi_blorb.o
GLKTERM_HEADERS = \
glkterm.h gtoption.h gtw_blnk.h gtw_buf.h \
gtw_grid.h gtw_pair.h gi_dispa.h
all: $(GLKLIB) Make.glkterm
cgunicod.o: cgunigen.c
$(GLKLIB): $(GLKTERM_OBJS)
ar r $(GLKLIB) $(GLKTERM_OBJS)
ranlib $(GLKLIB)
Make.glkterm:
echo LINKLIBS = $(LIBDIRS) $(LIBS) > Make.glkterm
echo GLKLIB = -lglkterm >> Make.glkterm
$(GLKTERM_OBJS): glk.h $(GLKTERM_HEADERS)
clean:
rm -f *~ *.o $(GLKLIB) Make.glkterm