File: Makefile.pdcurses.gcc

package info (click to toggle)
wcd 3.2.0-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny
  • size: 804 kB
  • ctags: 640
  • sloc: ansic: 8,260; makefile: 43; sh: 6; csh: 1
file content (44 lines) | stat: -rw-r--r-- 830 bytes parent folder | download | duplicates (2)
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
CC	= gcc

# if pdcurses is not on a default place edit the two following
# lines and uncomment them. Then run make.

#NCFLAG = -I/home/waterlan/include  # Place where curses.h resides.
#NLFLAG = -L/home/waterlan/lib      # Place where libXCurses.* resides.

CFLAGS	= -O -Wall -Ic3po $(NCFLAG) -fomit-frame-pointer -DXCURSES
LFLAGS  = $(NLFLAG) -lXCurses -L/usr/X11R6/lib -lXaw -lXmu -lXt -lX11 -lSM -lICE -lXext
DEFS    = -DUNIX -DWCD_USECURSES
OBJS1	= \
	nameset.o \
	intset.o \
	Error.o \
	Text.o \
	WcdStack.o \
	dirnode.o \
	wcd.o \
	match.o \
	stack.o \
	display.o \
	dosdir.o \
	wfixpath.o \
	graphics.o \
	wcddir.o

all:wcd.exe

wcd.exe: $(OBJS1)
	$(CC) $(OBJS1) $(LFLAGS) -o $@


%.o : %.c
	$(CC) -c $(CFLAGS) $(DEFS) $< -o $@

%.o : c3po/%.c
	$(CC) -c $(CFLAGS) $(DEFS) $< -o $@



clean:
	/bin/rm *.o *.bck *.bak *.exe