Skip to content
Snippets Groups Projects
Commit 63ac92e2 authored by rswindell's avatar rswindell
Browse files

Deuce's support for FLTK cross-platform C/C++ GUI framework.

parent c82a816b
No related branches found
No related tags found
No related merge requests found
...@@ -21,8 +21,10 @@ ifndef DEBUG ...@@ -21,8 +21,10 @@ ifndef DEBUG
endif endif
#USE_DIALOG = 1 # Dialog vesrion of UIFC #USE_DIALOG = 1 # Dialog vesrion of UIFC
USE_FLTK = 1 # Use Windowed version
USE_CURSES = 1 # Curses version of UIFC USE_CURSES = 1 # Curses version of UIFC
CC = gcc CC = gcc
CCPP = gcc
SLASH = / SLASH = /
OFILE = o OFILE = o
UIFC = ../../uifc UIFC = ../../uifc
...@@ -46,17 +48,22 @@ CFLAGS += -Wall -I$(UIFC) -I$(XPDEV) -I/usr/local/include -I../ -D_THREAD_SAFE ...@@ -46,17 +48,22 @@ CFLAGS += -Wall -I$(UIFC) -I$(XPDEV) -I/usr/local/include -I../ -D_THREAD_SAFE
LFLAGS := -L/usr/local/lib LFLAGS := -L/usr/local/lib
ifdef USE_DIALOG ifdef USE_DIALOG
LFLAGS := $(LFLAGS) -L../../libdialog -ldialog -lcurses LFLAGS += -L../../libdialog -ldialog -lcurses
CFLAGS += -I../../libdialog -DUSE_DIALOG CFLAGS += -I../../libdialog -DUSE_DIALOG
endif endif
ifdef USE_CURSES ifdef USE_CURSES
LFLAGS := $(LFLAGS) -lcurses LFLAGS += -lcurses
CFLAGS += -DUSE_CURSES CFLAGS += -DUSE_CURSES
endif endif
ifdef USE_FLTK
LFLAGS += -L/usr/X11R6/lib -lfltk -lX11
CFLAGS += -I/usr/X11R6/include -DUSE_FLTK
endif
# Math library needed # Math library needed
LFLAGS := $(LFLAGS) -lm LFLAGS += $(LFLAGS) -lm
ifdef DEBUG ifdef DEBUG
CFLAGS += -ggdb -O0 -D_DEBUG CFLAGS += -ggdb -O0 -D_DEBUG
...@@ -69,15 +76,20 @@ include targets.mk # defines all targets ...@@ -69,15 +76,20 @@ include targets.mk # defines all targets
include objects.mk # defines $(OBJS) include objects.mk # defines $(OBJS)
ifdef USE_DIALOG ifdef USE_DIALOG
OBJS := $(OBJS) $(ODIR)$(SLASH)uifcd.$(OFILE) OBJS += $(ODIR)$(SLASH)uifcd.$(OFILE)
endif endif
ifdef USE_CURSES ifdef USE_CURSES
OBJS := $(OBJS) $(ODIR)$(SLASH)uifcc.$(OFILE) OBJS += $(ODIR)$(SLASH)uifcc.$(OFILE)
endif
ifdef USE_FLTK
OBJS += $(ODIR)$(SLASH)uifcfltk.$(OFILE)
endif endif
vpath %.c .. vpath %.c ..
vpath %.c $(UIFC) vpath %.c $(UIFC)
vpath %.cpp $(UIFC)
vpath %.c $(XPDEV) vpath %.c $(XPDEV)
# Implicit C Compile Rule for SCFG # Implicit C Compile Rule for SCFG
...@@ -85,6 +97,11 @@ $(ODIR)/%.o : %.c ...@@ -85,6 +97,11 @@ $(ODIR)/%.o : %.c
@echo Compiling $< @echo Compiling $<
@$(CC) $(CFLAGS) -c $(SBBSDEFS) $< -o $@ @$(CC) $(CFLAGS) -c $(SBBSDEFS) $< -o $@
# Implicit C++ Compile Rule for SCFG
$(ODIR)/%.o : %.cpp
@echo Compiling $<
@$(CC) $(CFLAGS) -c $(SBBSDEFS) $< -o $@
# Create output directories # Create output directories
$(ODIR): $(ODIR):
mkdir $(ODIR) mkdir $(ODIR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment