File: MAKEFILE

package info (click to toggle)
xconq 7.2.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,296 kB
  • ctags: 9,199
  • sloc: ansic: 107,849; sh: 2,108; perl: 2,057; makefile: 1,177; sed: 161; csh: 50; awk: 49; lisp: 39
file content (53 lines) | stat: -rw-r--r-- 1,494 bytes parent folder | download | duplicates (3)
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
52
53
################################################################################
#                                                                              #
#	Makefile for curses                                                    #
#	(Now compatible with MAKE that comes with TURBO C)                     #
#                                                                              #
################################################################################

#### INCDIR	Where the curses include files are kept.
#### CC		Command to execute C compiler
#### CFLAGS	Flags to pass to C compiler.
#### LIB	Command to execute the librarian.
#### LFLAGS	Flags to pass to librarian.

INCDIR		= .

CC		= tcc
LIB		= tlib

CFLAGS		= -ms -O -v
LFLAGS		= /c

#LFLAGS		= /c /e
#CFLAGS		= -ms -O -v-

#### Note: 	For some reason, using the '/e' switch in TLIB prevents
####		debugging information from being included in the library.
####		If you are using the '-v' flag in CFLAGS, you should also
####		set LFLAGS to be "/c" and not "/c /e".

all:		lib

lib:		curses.lib
		@echo Library is up to date

t:		t.exe
t.obj:		t.c $(INCDIR)\curses.h

t.exe:		t.obj curses.lib
		$(CC) $(CFLAGS) t.obj curses.lib

curses.obj:	curses.c $(INCDIR)\curses.h
v_msdos.obj:	v_msdos.c $(INCDIR)\curses.h

curses.lib:	curses.obj v_msdos.obj
		@rm -f curses.lib
		$(LIB) $(LFLAGS) curses.lib +curses.obj \
					    +v_msdos.obj

.c.obj:
		$(CC) $(CFLAGS) -c $<

clean:
		rm -f *.obj *.map *.exe *.bak curses.lib