summaryrefslogtreecommitdiff
path: root/Makefile.linux
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.linux')
-rw-r--r--Makefile.linux30
1 files changed, 17 insertions, 13 deletions
diff --git a/Makefile.linux b/Makefile.linux
index 5dbca1012744..d447e7e88178 100644
--- a/Makefile.linux
+++ b/Makefile.linux
@@ -1,19 +1,20 @@
-OBJECTS= dict.o ficl.o fileaccess.o float.o math64.o prefix.o search.o softcore.o stack.o sysdep.o tools.o unix.o vm.o words.o
-HEADERS= ficl.h math64.h sysdep.h
+OBJECTS= dictionary.o system.o fileaccess.o float.o double.o prefix.o search.o softcore.o stack.o tools.o vm.o primitives.o bit.o lzuncompress.o unix.o utility.o hash.o callback.o word.o extras.o
+HEADERS= ficl.h ficlplatform/unix.h
#
# Flags for shared library
TARGET= -Dlinux # riscos MOTO_CPU32
SHFLAGS = -fPIC
-CFLAGS= -O -c $(SHFLAGS) $(TARGET)
-CC=gcc
+CFLAGS= -O $(SHFLAGS)
+CPPFLAGS= $(TARGET) -I.
+CC = cc
LIB = ar cr
RANLIB = ranlib
-MAJOR = 3
-MINOR = 0.1
+MAJOR = 4
+MINOR = 1.0
-ficl: testmain.o ficl.h sysdep.h libficl.a
- $(CC) testmain.o -o ficl -L. -lficl -lm
+ficl: main.o $(HEADERS) libficl.a
+ $(CC) main.o -o ficl -L. -lficl -lm
lib: libficl.so.$(MAJOR).$(MINOR)
@@ -28,23 +29,26 @@ libficl.so.$(MAJOR).$(MINOR): $(OBJECTS)
-o libficl.so.$(MAJOR).$(MINOR) $(OBJECTS)
ln -sf libficl.so.$(MAJOR).$(MINOR) libficl.so
-testmain: testmain.o ficl.h sysdep.h libficl.so.$(MAJOR).$(MINOR)
- $(CC) testmain.o -o testmain -L. -lficl -lm
+main: main.o ficl.h sysdep.h libficl.so.$(MAJOR).$(MINOR)
+ $(CC) main.o -o main -L. -lficl -lm
ln -sf libficl.so.$(MAJOR).$(MINOR) libficl.so.$(MAJOR)
+unix.o: ficlplatform/unix.c $(HEADERS)
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ ficlplatform/unix.c
+
#
# generic object code
#
.SUFFIXES: .cxx .cc .c .o
.c.o:
- $(CC) $(CFLAGS) -c $*.c
+ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $<
.cxx.o:
- $(CPP) $(CPFLAGS) -c $*.cxx
+ $(CPP) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
.cc.o:
- $(CPP) $(CPFLAGS) -c $*.cc
+ $(CPP) $(CXXFLAGS) $(CPPFLAGS) -c -o $@ $<
#
# generic cleanup code
#