Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
63ac92e2
Commit
63ac92e2
authored
22 years ago
by
rswindell
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sbbs3/scfg/GNUmakefile
+22
-5
22 additions, 5 deletions
src/sbbs3/scfg/GNUmakefile
with
22 additions
and
5 deletions
src/sbbs3/scfg/GNUmakefile
+
22
−
5
View file @
63ac92e2
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment