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

Fixed curses and fltk support

parent d0519893
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,10 @@ ifndef DEBUG ...@@ -20,6 +20,10 @@ ifndef DEBUG
endif endif
endif endif
#USE_DIALOG = 1 # Dialog vesrion of UIFC
USE_FLTK = 1 # Use Windowed version
USE_CURSES = 1 # Curses version of UIFC
ifdef DEBUG ifdef DEBUG
BUILD = debug BUILD = debug
else else
...@@ -108,10 +112,15 @@ endif ...@@ -108,10 +112,15 @@ endif
# The following are needed for echocfg # The following are needed for echocfg
ifdef USE_FLTK ifdef USE_FLTK
CFLAGS += -DUSE_CURSES -DUSE_FLTK -I../../include/fltk CFLAGS += -DUSE_FLTK -I../../include/fltk
LFLAGS_FLTK = -L../../lib/fltk/$(os) -L/usr/X11R6/lib -lfltk -lX11 -lcurses LFLAGS_FLTK = -L../../lib/fltk/$(os) -L/usr/X11R6/lib -lm -lfltk -lX11
UIFC_FLTK = $(EXEODIR)/uifcfltk.o UIFC_FLTK = $(EXEODIR)/uifcfltk.o
endif endif
ifdef USE_CURSES
CFLAGS += -DUSE_CURSES
LFLAGS_CURSES = -lcurses
UIFC_CURSES = $(EXEODIR)/uifcc.o
endif
include targets.mk # defines all targets include targets.mk # defines all targets
include objects.mk # defines $(OBJS) include objects.mk # defines $(OBJS)
...@@ -274,12 +283,13 @@ $(ECHOCFG): \ ...@@ -274,12 +283,13 @@ $(ECHOCFG): \
$(EXEODIR)/uifcx.o \ $(EXEODIR)/uifcx.o \
$(EXEODIR)/uifcc.o \ $(EXEODIR)/uifcc.o \
$(UIFC_FLTK) \ $(UIFC_FLTK) \
$(UIFC_CURSES) \
$(EXEODIR)/nopen.o \ $(EXEODIR)/nopen.o \
$(EXEODIR)/str_util.o \ $(EXEODIR)/str_util.o \
$(EXEODIR)/filewrap.o \ $(EXEODIR)/filewrap.o \
$(EXEODIR)/genwrap.o $(EXEODIR)/genwrap.o
@echo Linking $@ @echo Linking $@
@$(CC) -o $@ $^ $(LFLAGS_FLTK) $(CC) -o $@ $^ $(LFLAGS_FLTK) $(LFLAGS_CURSES)
# ADDFILES # ADDFILES
$(ADDFILES): \ $(ADDFILES): \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment