GNUmakefile 584 Bytes
Newer Older
deuce's avatar
deuce committed
1
2
3
4
SRC_ROOT = ..
# Cross platform/compiler definitions
include $(SRC_ROOT)/build/Common.gmake	# defines clean and output directory rules

deuce's avatar
deuce committed
5
6
7
CFLAGS += $(XPDEV-MT_CFLAGS) $(CIOLIB-MT_CFLAGS)

OBJS	+=	$(MTOBJODIR)$(DIRSEP)curs_cio$(OFILE)
deuce's avatar
deuce committed
8
9
10
ifdef NO_X
 CFLAGS	+=	-DNO_X
else
deuce's avatar
deuce committed
11
 CFLAGS	+=	-I/usr/X11R6/include
deuce's avatar
deuce committed
12
13
 OBJS	+=	$(MTOBJODIR)$(DIRSEP)console$(OFILE) \
			$(MTOBJODIR)$(DIRSEP)x_cio$(OFILE)
deuce's avatar
deuce committed
14
endif
15
16
17
ifeq ($(os),netbsd)
 CFLAGS	+=	-DN_CURSES_LIB
endif
deuce's avatar
deuce committed
18
19

# CIOLIB Library Link Rule
20
$(CIOLIB-MT_BUILD): $(MTOBJODIR) $(OBJS)
deuce's avatar
deuce committed
21
	@echo Creating $@ ...
deuce's avatar
deuce committed
22
23
	$(QUIET)$(AR) rc $@ $(OBJS)
	$(QUIET)$(RANLIB) $@