-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.old
41 lines (27 loc) · 856 Bytes
/
Makefile.old
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
#make -f Makefile.old
prefix = /usr
DEFS = -DUSE_FS=1 -DPLATFORM64=1\
-DHAVE_CURSES_H=1 -DHAVE_DIRENT_H=1 -DHAVE_ERRNO_H=1 -DHAVE_FCNTL_H=1 -DHAVE_POLL_H=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_TIME_H=1 -DHAVE_SYS_STAT_H=1\
-DHAVE_STDBOOL_H=1 -DHAVE_STDDEF_H=1
# -DHAVE_DLFCN_H=1
# -DHAVE_SIGNAL_H=1
#
# -DUSE__FS=1
all: s/edor
OBJ = s/main.o s/bar.o s/sep.o s/tw.o
%.o: %.c
$(CC) -x c++ -c -o $@ $< $(DEFS) $(CPPFLAGS) $(CFLAGS)
s/edor: $(OBJ)
$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lcurses
install: s/edor
install -D s/edor \
$(DESTDIR)$(prefix)/bin/edor
clean-compile:
-rm -f $(OBJ)
clean-link:
-rm -f s/edor
clean: clean-compile clean-link
distclean: clean
uninstall:
-rm -f $(DESTDIR)$(prefix)/bin/edor
.PHONY: all install clean clean-compile clean-link distclean uninstall