Skip to content

Commit

Permalink
New and improved. And sane.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Oct 1, 2000
1 parent 1202c53 commit c6e1c21
Showing 1 changed file with 47 additions and 22 deletions.
69 changes: 47 additions & 22 deletions BASIClib/Makefile
@@ -1,42 +1,67 @@
# Makefile entry.
#----------------------------------------------------------------------------#
# Makefile for BASIClib. Woohoo.
#
#
# Do NOT edit this file if you don't have to!
# Global customization is done in the "default.mak" file.
#
#
# Copyright (c) 1999 Ryan C. Gordon and Gregory S. Read.
#----------------------------------------------------------------------------#

include default.mak

DYNLIBBASE = libBASIC.so
DYNLIBWHOLE = $(DYNLIBBASE).$(WHOLEVERSION)
DYNLIBMAJOR = $(DYNLIBBASE).$(MAJORVER)

all : $(DYNLIBBASE) console

$(DYNLIBBASE) : $(DYNLIBMAJOR)
ln -sf $(DYNLIBMAJOR) $(DYNLIBBASE)

export MAJORVER = 0
export MINORVER = 0
export REVISIONVER = 1
export WHOLEVERSION = $(MAJORVER).$(MINORVER).$(REVISIONVER)
export OBJS = BasicString.o ConversionFunctions.o Initialize.o \
ErrorFunctions.o MathFunctions.o MemoryManager.o Threads.o \
TimeDateFunctions.o BasicFileSystem.o \
StringFunctions.o LowLevelFunctions.o SignalHandlers.o \
ConsoleFunctions.o ProcessFunctions.o FileSystemFunctions.o \
Variant.o BasicError.o NoConsole.o DirectConsole.o \
RedirectedConsole.o CursesConsole.o EnvrFunctions.o Gosub.o \
MiscFunctions.o ArrayFunctions.o GUIFrontEnd.o \
RegistryFunctions.o Language.o DynamicLoader.o
$(DYNLIBMAJOR) : $(DYNLIBWHOLE)
ln -sf $(DYNLIBWHOLE) $(DYNLIBMAJOR)

$(DYNLIBWHOLE) : $(OBJS)
$(LINKER) $(LOPTIONS) $(DYNLIBWHOLE) $(OBJS) $(GCLIB)

%.o : %.c
$(CC) $(COPTIONS) $@ $<

# temp fix. !!!
LowLevelFunctions.o : LowLevelFunctions.c
$(CC) $(COPTIONS) LowLevelFunctions.o -O3 LowLevelFunctions.c

console:
cd consoledrivers ; $(MAKE) all

about:
@cat ../docs/about.txt
-@clear
@cat ../docs/about.txt |more

install: all
cp $(DYNLIBWHOLE) /usr/local/lib
ln -sf $(INSTPREFIX)/$(DYNLIBWHOLE) $(INSTPREFIX)/$(DYNLIBMAJOR)
ln -sf $(INSTPREFIX)/$(DYNLIBMAJOR) $(INSTPREFIX)/$(DYNLIBBASE)
cd consoledrivers ; $(MAKE) install
ldconfig
cp vbslacker.lang /etc
cp vbslacker.cons /etc
sync

lines:
@linecount $(wildcard *.c) $(wildcard *.h) $(wildcard Makefile*)
@wc -l $(wildcard *.c) $(wildcard *.h) $(wildcard Makefile*)

clean:
cd consoledrivers ; $(MAKE) clean
rm -f $(wildcard *core)
rm -f $(wildcard *.o)
rm -f $(wildcard *.obj)
rm -f $(wildcard *.exe)
rm -f $(wildcard *.dll)
rm -f $(wildcard *.so*)
rm -f $(wildcard *.a)

linux: Makefile.linux
@$(MAKE) -f Makefile.linux all

win32: Makefile.win32
@$(MAKE) -f Makefile.win32 all

# end of Makefile ...

0 comments on commit c6e1c21

Please sign in to comment.