-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (25 loc) · 799 Bytes
/
Makefile
File metadata and controls
33 lines (25 loc) · 799 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
CC=gcc
CFLAGS=-g -Wall
LIBFLAGS=-ltermcap -lcurses
CFLAGSO=-g -Wno-parentheses -Wno-format-security
DEF=-DHAVE_CONFIG_H -DRL_LIBRARY_VERSION='"8.1"'
INC=-I/home/myid/ingrid/usr/local/include
LIBLOC=/home/myid/ingrid/usr/local/lib
all: histexamp yosh
%.o : %.c
$(CC) $(CFLAGSO) $(DEF) $(INC) -c $<
rlbasic : rlbasic.o
$(CC) $(CFLAGS) -o $@ $< $(LIBLOC)/libreadline.a $(LIBFLAGS)
histexamp : histexamp.o
$(CC) $(CFLAGS) -o $@ $< $(LIBLOC)/libhistory.a $(LIBFLAGS)
shell: shell.o parse.o parse.h
$(CC) $(CFLAGS) -o $@ shell.o parse.o $(LIBLOC)/libreadline.a $(LIBFLAGS)
yosh: yosh.o parse.o parse.h
$(CC) $(CFLAGS) -o $@ yosh.o parse.o $(LIBLOC)/libreadline.a $(LIBFLAGS)
clean:
rm -f shell *~
rm -f yosh *~
rm -f pipe
rm -f *.o
rm -f rlbasic rlbasic.o
rm -f histexamp histexamp.o