Skip to content
Snippets Groups Projects
Commit 6b3072e7 authored by deuce's avatar deuce
Browse files

Add _LIBS macros.

parent dbd86c7b
No related branches found
No related tags found
No related merge requests found
# Available Options:
# NEED_CURSES = Set flags suitable for building with the curses lib
# NEED_UIFC = Set flags for use with UIFC
# XCURSES = Use XCurses
# NEED_CIOLIB = Set flage suitable for using with ciowrap lib
# NO_X = Don't use X version of ciowrap
# You really should set this first.
UIFC_SRC ?= $(XPDEV)../uifc/
CONIO_SRC ?= $(XPDEV)../conio/
include $(CONIO_SRC)Common.gmake
# UIFC Related stuff
UIFC_CFLAGS += -I$(UIFC_SRC)
# Don't set this magically until Borland makefiles are fixed
#UIFC_OBJS = $(LIBODIR)/uifcx.o
ifdef USE_FLTK
UIFC_CFLAGS += -DUSE_FLTK -I$(XPDEV)/../../include/fltk
UIFC_LDFLAGS += -L$(XPDEV)../../lib/fltk/$(os) -L/usr/X11R6/lib -lm -lfltk -lX11
UIFC_OBJS+= $(LIBODIR)/uifcfltk.o
endif
ifdef USE_DIALOG
LDFLAGS += -L$(XPDEV)../libdialog -ldialog $(CURSESLIB)
UIFC_CFLAGS += -I$(XPDEV)../libdialog -DUSE_DIALOG
UIFC_NEED_CIOLIB := 1
endif
ifdef USE_CURSES
UIFC_CFLAGS += -DUSE_CURSES
UIFC_OBJS += $(LIBODIR)/uifcc.o
UIFC_NEED_CIOLIB := 1
endif
ifdef USE_UIFC32
UIFC_CFLAGS += -DUSE_UIFC32
UIFC_OBJS += $(LIBODIR)/uifc32.o
USE_CIOLIB := 1
endif
ifdef USE_CIOLIB
UIFC_NEED_CIOLIB := 1
endif
ifdef UIFC_NEED_CIOLIB
UIFC_CFLAGS += $(CIOLIB_CFLAGS)
UIFC_LDFLAGS += $(CIOLIB_LDFLAGS)
UIFC_OBJS += $(CIOLIB_OBJS)
endif
ifdef NEED_UIFC
CFLAGS += $(UIFC_CFLAGS)
LDFLAGS += $(UIFC_LDFLAGS)
OBJS += $(UIFC_OBJS)
endif
vpath %.c $(UIFC_SRC)
vpath %.cpp $(UIFC_SRC)
......@@ -5,3 +5,5 @@ UIFC_CFLAGS = -I$(UIFC_SRC)
UIFC_LDFLAGS = -L$(UIFC_SRC)$(DIRSEP)$(LIBODIR)
UIFC-MT_CFLAGS = -I$(UIFC_SRC)
UIFC-MT_LDFLAGS = -L$(UIFC_SRC)$(DIRSEP)$(LIBODIR)
UIFC_LIBS = -luifc
UIFC-MT_LIBS = -luifc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment