Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ... | ||
|