home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / contrib / ncurses-.8 / ncurses-.000 / ncurses-1.8.6.diff
Text File  |  1995-01-18  |  16KB  |  485 lines

  1. diff -u --new-file --recursive ncurses-1.8.6.orig/src/Config.linux ncurses-1.8.6/src/Config.linux
  2. --- ncurses-1.8.6.orig/src/Config.linux    Wed Dec 31 18:00:00 1969
  3. +++ ncurses-1.8.6/src/Config.linux    Wed Jan 18 17:21:04 1995
  4. @@ -0,0 +1,85 @@
  5. +# This file handles all the OS-specific definitions
  6. +# It also deals with defaults
  7. +# You only need to change things in this file
  8. +
  9. +#===========================================================================
  10. +# This Configuration file is for:
  11. +# Linux 0.99.15/GCC 2.4.5/libc 4.4.4
  12. +#===========================================================================
  13. +
  14. +# Handling non-POSIX systems requires defining NONPOSIX
  15. +# The most common clue to this is a missing <unistd.h>
  16. +# This currently applies to NeXTSTEP 3.0
  17. +# ISPOSIX = -DNONPOSIX
  18. +ISPOSIX = 
  19. +
  20. +# Define whether a system has sigaction or not. Older BSD-based
  21. +# don't, and use sigvec instead.
  22. +# SIGNALS = -DNOACTION
  23. +SIGNALS = 
  24. +
  25. +# Define whether the system uses termios or sgtty terminal handling
  26. +# Only NeXTSTEP 3.0 uses sgtty
  27. +# TERMINAL = -DNOTERMIOS
  28. +TERMINAL = 
  29. +
  30. +# Most commercial systems don't bother to declare external variables in their headers
  31. +# If your system is one of those, use -DBRAINDEAD
  32. +# This includes SunOS, Ultrix, HPux, apollo
  33. +# but not Linux, 386bsd, bsd386/BSDI, SYSVR4.2.
  34. +# HEADERS = -DBRAINDEAD
  35. +HEADERS = 
  36. +
  37. +# BSD systems (386bsd, BSDI, and probably others) don't have TAB3
  38. +# or XTABS. Some systems have TAB3 but not XTABS.
  39. +# HPux doesn't need this flag.
  40. +# Apollos don't need it, even in bsd environment(!)
  41. +# use -DBSDTABS if your system doesn't have TAB3 in termios.h
  42. +# TABS = -DBSDTABS
  43. +TABS = 
  44. +
  45. +# The mvcur optimization is still buggy. If your terminals have
  46. +# direct cursor addressing capabilites don't use it. Otherwise
  47. +# use -DOPT_MVCUR
  48. +# OPT = -DOPT_MVCUR
  49. +OPT = 
  50. +
  51. +# Now gather up all the configuration flags
  52. +CONFIG = $(ISPOSIX) $(SIGNALS) $(TERMINAL) $(HEADERS) $(TABS) $(OPT) 
  53. +
  54. +# SRCDIR is the directory where terminfo entries, the tic and
  55. +# untic programs, live. Should be somewhere on the root file
  56. +# system to enable its use in single-user mode
  57. +SRCDIR= /usr/lib/terminfo
  58. +
  59. +# libraries to build
  60. +# ncurses is the regular version
  61. +# dcurses is the tracing version
  62. +LIBS= libncurses.a libdcurses.a
  63. +
  64. +# Ansi compiler, and relevant flags
  65. +CC= gcc
  66. +FLAGS= -I. -Wall -O2
  67. +CFLAGS= $(FLAGS) $(CONFIG)
  68. +DFLAGS= $(FLAGS) -DTRACE $(CONFIG)
  69. +
  70. +# Base directory; a separate entity to allow user installation
  71. +INSTALL_DIR = /usr
  72. +
  73. +# Where the header files will go 
  74. +INCLUDE= $(INSTALL_DIR)/include/ncurses
  75. +
  76. +# Where the libraries will go
  77. +# gcc knows to look in here, if you change it or you compiler doesn't
  78. +# look in /usr/local/lib don't forget to add -L$(LIB) to your LDFLAGS
  79. +# when linking things with ncurses
  80. +LIB= $(INSTALL_DIR)/lib
  81. +
  82. +# Where man pages will go
  83. +MAN= $(INSTALL_DIR)/man
  84. +
  85. +# The program to use to install things: 
  86. +# It should be an 'install' that understands -cmgos options 
  87. +# FSF has one. 
  88. +INSTALL = install
  89. +
  90. diff -u --new-file --recursive ncurses-1.8.6.orig/src/Makefile ncurses-1.8.6/src/Makefile
  91. --- ncurses-1.8.6.orig/src/Makefile    Wed Dec 31 18:00:00 1969
  92. +++ ncurses-1.8.6/src/Makefile    Wed Jan 18 17:21:04 1995
  93. @@ -0,0 +1,261 @@
  94. +# This file handles all the OS-specific definitions
  95. +# It also deals with defaults
  96. +# You only need to change things in this file
  97. +
  98. +#===========================================================================
  99. +# This Configuration file is for:
  100. +# Linux 0.99.15/GCC 2.4.5/libc 4.4.4
  101. +#===========================================================================
  102. +
  103. +# Handling non-POSIX systems requires defining NONPOSIX
  104. +# The most common clue to this is a missing <unistd.h>
  105. +# This currently applies to NeXTSTEP 3.0
  106. +# ISPOSIX = -DNONPOSIX
  107. +ISPOSIX = 
  108. +
  109. +# Define whether a system has sigaction or not. Older BSD-based
  110. +# don't, and use sigvec instead.
  111. +# SIGNALS = -DNOACTION
  112. +SIGNALS = 
  113. +
  114. +# Define whether the system uses termios or sgtty terminal handling
  115. +# Only NeXTSTEP 3.0 uses sgtty
  116. +# TERMINAL = -DNOTERMIOS
  117. +TERMINAL = 
  118. +
  119. +# Most commercial systems don't bother to declare external variables in their headers
  120. +# If your system is one of those, use -DBRAINDEAD
  121. +# This includes SunOS, Ultrix, HPux, apollo
  122. +# but not Linux, 386bsd, bsd386/BSDI, SYSVR4.2.
  123. +# HEADERS = -DBRAINDEAD
  124. +HEADERS = 
  125. +
  126. +# BSD systems (386bsd, BSDI, and probably others) don't have TAB3
  127. +# or XTABS. Some systems have TAB3 but not XTABS.
  128. +# HPux doesn't need this flag.
  129. +# Apollos don't need it, even in bsd environment(!)
  130. +# use -DBSDTABS if your system doesn't have TAB3 in termios.h
  131. +# TABS = -DBSDTABS
  132. +TABS = 
  133. +
  134. +# The mvcur optimization is still buggy. If your terminals have
  135. +# direct cursor addressing capabilites don't use it. Otherwise
  136. +# use -DOPT_MVCUR
  137. +# OPT = -DOPT_MVCUR
  138. +OPT = 
  139. +
  140. +# Now gather up all the configuration flags
  141. +CONFIG = $(ISPOSIX) $(SIGNALS) $(TERMINAL) $(HEADERS) $(TABS) $(OPT) 
  142. +
  143. +# SRCDIR is the directory where terminfo entries, the tic and
  144. +# untic programs, live. Should be somewhere on the root file
  145. +# system to enable its use in single-user mode
  146. +SRCDIR= /usr/lib/terminfo
  147. +
  148. +# libraries to build
  149. +# ncurses is the regular version
  150. +# dcurses is the tracing version
  151. +LIBS= libncurses.a libdcurses.a
  152. +
  153. +# Ansi compiler, and relevant flags
  154. +CC= gcc
  155. +FLAGS= -I. -Wall -O2
  156. +CFLAGS= $(FLAGS) $(CONFIG)
  157. +DFLAGS= $(FLAGS) -DTRACE $(CONFIG)
  158. +
  159. +# Base directory; a separate entity to allow user installation
  160. +INSTALL_DIR = /usr
  161. +
  162. +# Where the header files will go 
  163. +INCLUDE= $(INSTALL_DIR)/include/ncurses
  164. +
  165. +# Where the libraries will go
  166. +# gcc knows to look in here, if you change it or you compiler doesn't
  167. +# look in /usr/local/lib don't forget to add -L$(LIB) to your LDFLAGS
  168. +# when linking things with ncurses
  169. +LIB= $(INSTALL_DIR)/lib
  170. +
  171. +# Where man pages will go
  172. +MAN= $(INSTALL_DIR)/man
  173. +
  174. +# The program to use to install things: 
  175. +# It should be an 'install' that understands -cmgos options 
  176. +# FSF has one. 
  177. +INSTALL = install
  178. +
  179. +# nothing below this line should need changing. If you absolutely have to,
  180. +# drop me a note including your changes. zmbenhal@netcom.com
  181. +
  182. +SRCS=    comp_main.c comp_hash.c comp_captab.c comp_scan.c comp_error.c \
  183. +    comp_parse.c read_entry.c dump_entry.c names.c strerror.c \
  184. +    lib_setup.c lib_kernel.c lib_tparm.c lib_tputs.c lib_slk.c lib_pad.c\
  185. +    lib_unctrl.c lib_raw.c lib_vidattr.c lib_trace.c lib_ti.c lib_keyname.c\
  186. +    lib_beep.c lib_doupdate.c lib_refresh.c lib_initscr.c lib_newwin.c \
  187. +    lib_addch.c lib_addstr.c lib_scroll.c lib_clreol.c lib_touch.c \
  188. +    lib_mvcur.c lib_delwin.c lib_endwin.c lib_clrbot.c lib_move.c \
  189. +    lib_printw.c lib_scanw.c lib_erase.c lib_getch.c lib_options.c \
  190. +    lib_box.c lib_clear.c lib_delch.c lib_insch.c lib_bkgd.c\
  191. +    lib_insdel.c lib_getstr.c lib_mvwin.c lib_longname.c lib_tstp.c \
  192. +    lib_newterm.c lib_set_term.c lib_overlay.c lib_scrreg.c lib_color.c \
  193. +    lib_insstr.c lib_termcap.c lib_twait.c sigaction.c lib_window.c
  194. +
  195. +# Normal, optimised object files
  196. +LIBOBJS= lib_setup.o lib_kernel.o lib_tparm.o read_entry.o lib_tputs.o lib_pad.o\
  197. +    lib_unctrl.o lib_raw.o lib_vidattr.o lib_trace.o lib_beep.o names.o\
  198. +    lib_doupdate.o lib_refresh.o lib_initscr.o lib_newwin.o lib_addch.o \
  199. +    lib_addstr.o lib_scroll.o lib_clreol.o lib_touch.o lib_mvcur.o lib_keyname.o\
  200. +    lib_delwin.o lib_endwin.o lib_clrbot.o lib_move.o lib_printw.o \
  201. +    lib_scanw.o lib_erase.o lib_getch.o lib_options.o lib_acs.o lib_slk.o\
  202. +    lib_box.o lib_clear.o lib_delch.o lib_insch.o lib_ti.o lib_bkgd.o\
  203. +    lib_insdel.o lib_getstr.o lib_mvwin.o lib_longname.o lib_tstp.o \
  204. +    lib_newterm.o lib_set_term.o lib_overlay.o lib_scrreg.o lib_color.o \
  205. +    lib_insstr.o lib_termcap.o lib_twait.o sigaction.o strerror.o lib_window.o
  206. +
  207. +# Debugging object files
  208. +DLIBOBJS= lib_setup.d lib_kernel.d lib_tparm.d read_entry.d lib_tputs.d lib_pad.d\
  209. +    lib_unctrl.d lib_raw.d lib_vidattr.d lib_trace.d lib_beep.d names.d\
  210. +    lib_doupdate.d lib_refresh.d lib_initscr.d lib_newwin.d lib_addch.d \
  211. +    lib_addstr.d lib_scroll.d lib_clreol.d lib_touch.d lib_mvcur.d lib_keyname.d\
  212. +    lib_delwin.d lib_endwin.d lib_clrbot.d lib_move.d lib_printw.d \
  213. +    lib_scanw.d lib_erase.d lib_getch.d lib_options.d lib_acs.d lib_slk.d\
  214. +    lib_box.d lib_clear.d lib_delch.d lib_insch.d lib_ti.d lib_bkgd.d\
  215. +    lib_insdel.d lib_getstr.d lib_mvwin.d lib_longname.d lib_tstp.d \
  216. +    lib_newterm.d lib_set_term.d lib_overlay.d lib_scrreg.d lib_color.d \
  217. +    lib_insstr.d lib_termcap.d lib_twait.d sigaction.o strerror.d lib_window.d
  218. +
  219. +COMPOBJS= comp_main.o comp_captab.o comp_hash.o comp_scan.o comp_error.o \
  220. +    comp_parse.o captoinfo.o read_entry.o dump_entry.o names.o
  221. +
  222. +.SUFFIXES: .d
  223. +
  224. +.c.o:
  225. +    $(CC) -c $(CFLAGS) -o $*.o $*.c
  226. +
  227. +.c.d:
  228. +    $(CC) -c $(DFLAGS) -o $*.d $*.c
  229. +
  230. +CMDS = tic infocmp clear tput
  231. +
  232. +all: $(CMDS) $(LIBS)
  233. +
  234. +libs:    $(LIBS)
  235. +
  236. +install:
  237. +    echo "Choose one or more of the follwing options:"
  238. +    echo "install.libs install.man install.cmds install.data"
  239. +    echo "or use install.all"
  240. +
  241. +install.all:    install.libs install.man install.cmds install.data
  242. +
  243. +BIN=$(INSTALL_DIR)/bin
  244. +
  245. +$(INCLUDE) $(LIB) $(SRCDIR) $(BIN):
  246. +    mkdir -p $@
  247. +
  248. +install.libs: terminfo.h $(LIBS) $(INCLUDE) $(LIB)
  249. +    $(INSTALL) -c -m 0644 -o bin -g bin terminfo.h $(INCLUDE)/term.h
  250. +    $(INSTALL) -c -m 0644 -o bin -g bin curses.h $(INCLUDE)/curses.h
  251. +    $(INSTALL) -c -m 0644 -o bin -g bin unctrl.h $(INCLUDE)/unctrl.h
  252. +    $(INSTALL) -c -m 0644 -o bin -g bin termcap.h $(INCLUDE)/termcap.h
  253. +    @for lib in $(LIBS); do \
  254. +        echo installing $${lib} as $(LIB)/$${lib}; \
  255. +        $(INSTALL) -c -m 0644 -o bin -g bin $${lib} $(LIB)/$${lib}; \
  256. +        ranlib $(LIB)/$${lib}; \
  257. +    done
  258. +
  259. +install.man:
  260. +    (cd ../man; make SRCDIR=$(SRCDIR) INSTALL=$(INSTALL) MAN=$(MAN) )
  261. +
  262. +install.cmds: $(CMDS) $(BIN)
  263. +    $(INSTALL) -c -s -m 755 -o bin -g bin tic $(BIN)/tic
  264. +    $(INSTALL) -c -s -m 755 -o bin -g bin infocmp $(BIN)/infocmp
  265. +    $(INSTALL) -c -s -m 755 -o bin -g bin clear $(BIN)/clear
  266. +    $(INSTALL) -c -s -m 755 -o bin -g bin tput $(BIN)/tput
  267. +    @echo ""
  268. +    @echo Ignore any error messages about linking captoinfo to tic
  269. +    @echo ""
  270. +    -ln $(BIN)/tic $(BIN)/captoinfo
  271. +
  272. +install.data: $(SRCDIR) 
  273. +    @for e in ../data/*; do \
  274. +        echo compiling $$e entry;\
  275. +        $(BIN)/tic $$e;\
  276. +    done
  277. +
  278. +lib:    terminfo.h libncurses.a    
  279. +libncurses.a:    ${LIBOBJS}
  280. +    ar rv libncurses.a $?
  281. +    ranlib libncurses.a
  282. +
  283. +dlib:    terminfo.h libdcurses.a    
  284. +libdcurses.a:    ${DLIBOBJS}
  285. +    ar rv libdcurses.a $?
  286. +    ranlib libdcurses.a
  287. +
  288. +tic: ${COMPOBJS}
  289. +    $(CC) $(FLAGS) -o tic ${COMPOBJS}
  290. +
  291. +clear: clear.c libncurses.a 
  292. +    $(CC) $(FLAGS) clear.c libncurses.a -o clear
  293. +
  294. +tput: tput.c libncurses.a 
  295. +    $(CC) $(FLAGS) tput.c libncurses.a -o tput
  296. +
  297. +infocmp: infocmp.o names.o dump_entry.o read_entry.o
  298. +    $(CC) $(FLAGS) -o infocmp infocmp.o names.o dump_entry.o read_entry.o
  299. +
  300. +keys.tries: keys.list
  301. +    awk -f MKkeys.awk keys.list > keys.tries
  302. +
  303. +lib_options.o: keys.tries lib_options.c terminfo.h
  304. +
  305. +lib_options.c: keys.tries
  306. +
  307. +terminfo.h: Caps MKterm.h.awk
  308. +    awk -f MKterm.h.awk Caps > terminfo.h
  309. +
  310. +hashsize.h: Caps MKhashsize.sh
  311. +    sh MKhashsize.sh >hashsize.h
  312. +
  313. +comp_captab.c: Caps MKcaptab.awk
  314. +    awk -f MKcaptab.awk Caps > comp_captab.c
  315. +comp_captab.o: comp_captab.c hashsize.h
  316. +
  317. +comp_hash.o: comp_hash.c hashsize.h
  318. +
  319. +comp_main.o: tic.h terminfo.h version.h dump_entry.h
  320. +    $(CC) $(CFLAGS) -DSRCDIR=\"$(SRCDIR)\" -o comp_main.o -c comp_main.c
  321. +
  322. +comp_parse.o: tic.h object.h terminfo.h dump_entry.h
  323. +    $(CC) $(CFLAGS) -DSRCDIR=\"$(SRCDIR)\" -o comp_parse.o -c comp_parse.c
  324. +
  325. +infocmp.o: infocmp.c terminfo.h tic.h dump_entry.h
  326. +    $(CC) $(CFLAGS) -DSRCDIR=\"$(SRCDIR)\" -o infocmp.o -c infocmp.c
  327. +
  328. +dump_entry.o: dump_entry.c termsort.c terminfo.h tic.h dump_entry.h
  329. +    $(CC) $(CFLAGS) -DSRCDIR=\"$(SRCDIR)\" -o dump_entry.o -c dump_entry.c
  330. +
  331. +lib_setup.o: lib_setup.c
  332. +    $(CC) $(CFLAGS) -DSRCDIR=\"$(SRCDIR)\" -o lib_setup.o -c lib_setup.c
  333. +
  334. +lib_setup.d: lib_setup.c
  335. +    $(CC) $(DFLAGS) -DSRCDIR=\"$(SRCDIR)\" -o lib_setup.d -c lib_setup.c
  336. +
  337. +lib_keyname.c: keys.list MKkeyname.awk
  338. +    awk -f MKkeyname.awk keys.list > lib_keyname.c
  339. +
  340. +names.c: Caps MKnames.awk
  341. +    awk -f MKnames.awk Caps
  342. +    cat boolnames boolfnames boolcodes numnames numfnames numcodes strnames strfnames strcodes> names.c
  343. +    rm -f boolnames boolfnames boolcodes numnames numfnames numcodes strnames strfnames strcodes
  344. +
  345. +termsort.c: Caps termsort.sh
  346. +    termsort.sh >termsort.c
  347. +
  348. +clean:
  349. +    rm -f *.[aod] term.h comp_captab.c tags lib_keyname.c keys.tries names.c
  350. +
  351. +clobber: clean
  352. +    rm -f clear tput tic infocmp Config.* termsort.c hashsize.h ncurses.h terminfo.h Makefile 
  353. +
  354. +
  355. diff -u --new-file --recursive ncurses-1.8.6.orig/test/Config.linux ncurses-1.8.6/test/Config.linux
  356. --- ncurses-1.8.6.orig/test/Config.linux    Wed Dec 31 18:00:00 1969
  357. +++ ncurses-1.8.6/test/Config.linux    Wed Jan 18 17:21:04 1995
  358. @@ -0,0 +1,26 @@
  359. +#===========================================================================
  360. +# This Configuration file is for:
  361. +# Linux 0.99.15/GCC 2.4.5/libc 4.4.4
  362. +#===========================================================================
  363. +
  364. +# Handling non-POSIX systems requires defining NONPOSIX
  365. +# The most common clue to this is a missing <unistd.h>
  366. +# This currently applies to NeXTSTEP 3.0
  367. +# ISPOSIX = -DNONPOSIX
  368. +ISPOSIX = 
  369. +
  370. +# Ansi compiler, and relevant flags
  371. +CC= gcc
  372. +FLAGS= -I$(INCLUDE) -I. -Wall -O2
  373. +CFLAGS= $(FLAGS) $(CONFIG)
  374. +DFLAGS= $(FLAGS) -DTRACE $(CONFIG)
  375. +
  376. +INSTALL_DIR=/usr
  377. +# Where the header files are 
  378. +INCLUDE= $(INSTALL_DIR)/include/ncurses
  379. +
  380. +# Where the libraries are
  381. +# If not /usr/lib don't forget to add -L$(LIB) to your LDFLAGS
  382. +# when linking things with ncurses
  383. +LIB= $(INSTALL_DIR)/lib
  384. +
  385. diff -u --new-file --recursive ncurses-1.8.6.orig/test/Makefile ncurses-1.8.6/test/Makefile
  386. --- ncurses-1.8.6.orig/test/Makefile    Wed Dec 31 18:00:00 1969
  387. +++ ncurses-1.8.6/test/Makefile    Wed Jan 18 17:21:04 1995
  388. @@ -0,0 +1,96 @@
  389. +#===========================================================================
  390. +# This Configuration file is for:
  391. +# Linux 0.99.15/GCC 2.4.5/libc 4.4.4
  392. +#===========================================================================
  393. +
  394. +# Handling non-POSIX systems requires defining NONPOSIX
  395. +# The most common clue to this is a missing <unistd.h>
  396. +# This currently applies to NeXTSTEP 3.0
  397. +# ISPOSIX = -DNONPOSIX
  398. +ISPOSIX = 
  399. +
  400. +# Ansi compiler, and relevant flags
  401. +CC= gcc
  402. +FLAGS= -I$(INCLUDE) -I. -Wall -O2
  403. +CFLAGS= $(FLAGS) $(CONFIG)
  404. +DFLAGS= $(FLAGS) -DTRACE $(CONFIG)
  405. +
  406. +INSTALL_DIR=/usr
  407. +# Where the header files are 
  408. +INCLUDE= $(INSTALL_DIR)/include/ncurses
  409. +
  410. +# Where the libraries are
  411. +# If not /usr/lib don't forget to add -L$(LIB) to your LDFLAGS
  412. +# when linking things with ncurses
  413. +LIB= $(INSTALL_DIR)/lib
  414. +
  415. +# change to -ldcurses if you want to do any debugging
  416. +
  417. +LDFLAGS = -lncurses
  418. +
  419. +TESTS = \
  420. +    battle \
  421. +    bs \
  422. +    copy \
  423. +    ensor \
  424. +    firework \
  425. +    gdc \
  426. +    hanoi \
  427. +    knight \
  428. +    ncurses \
  429. +    newdemo \
  430. +    over \
  431. +    rain \
  432. +    scroll \
  433. +    scroll2 \
  434. +    scroll3 \
  435. +    testcurs \
  436. +    worm \
  437. +    xmas 
  438. +
  439. +all: $(TESTS) 
  440. +
  441. +battle: battle.c
  442. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  443. +bs: bs.c
  444. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  445. +copy: copy.c
  446. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  447. +ensor: ensor.c
  448. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  449. +firework: firework.c
  450. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  451. +gdc: gdc.c
  452. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  453. +hanoi: hanoi.c
  454. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  455. +knight: knight.c
  456. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  457. +ncurses: ncurses.c
  458. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  459. +newdemo: newdemo.c
  460. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  461. +over: over.c
  462. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  463. +rain: rain.c
  464. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  465. +scroll: scroll.c
  466. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  467. +scroll2: scroll2.c
  468. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  469. +scroll3: scroll3.c
  470. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  471. +testcurs: testcurs.c
  472. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  473. +worm: worm.c
  474. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  475. +xmas: xmas.c
  476. +    $(CC) $(CFLAGS) $@.c $(LDFLAGS) -o $@
  477. +
  478. +clean:
  479. +    rm -rf *.o trace t $(TESTS)
  480. +
  481. +clobber: clean
  482. +    rm -rf Config.* Makefile
  483. +    @echo "You'll have to reconfigure by running src/Configure"
  484. +
  485.