mplisp

miniPicoLisp with FFI and modules for Buddy BDD library, OpenGL, Gtk and GMP
git clone https://logand.com/git/mplisp.git/
Log | Files | Refs

Makefile (920B)


      1 # 25jun07abu
      2 # (c) Software Lab. Alexander Burger
      3 
      4 .SILENT:
      5 
      6 bin = ../bin
      7 picoFiles = main.c gc.c apply.c flow.c sym.c subr.c math.c io.c tab.c mod/buddy.ffi.c mod/queens.c mod/queens.ffi.c mod/gl.ffi.c mod/glu.ffi.c mod/glut.ffi.c mod/glut.c mod/gtk.ffi.c mod/gmpx.c mod/gmp.ffi.c
      8 
      9 CFLAGS = -I~/sw/buddy-2.4/src `pkg-config --cflags libglade-2.0`
     10 LDFLAGS = -L~/sw/buddy-2.4/src/.libs -lbdd -lglut `pkg-config --libs libglade-2.0` -lgmp
     11 
     12 picolisp: $(bin)/picolisp
     13 
     14 .c.o:
     15 	echo $*.c:
     16 	gcc -c -O -falign-functions -fomit-frame-pointer \
     17 	-W -Wimplicit -Wreturn-type -Wunused -Wformat \
     18 	-Wuninitialized -Wstrict-prototypes \
     19 	-pipe  -D_GNU_SOURCE $(CFLAGS) -o $*.o $*.c
     20 
     21 $(picoFiles:.c=.o): pico.h
     22 
     23 $(bin)/picolisp: $(picoFiles:.c=.o)
     24 	mkdir -p $(bin)
     25 	echo "  " link picolisp:
     26 	gcc -o $(bin)/picolisp $(picoFiles:.c=.o) -lc -lm $(LDFLAGS)
     27 	strip $(bin)/picolisp
     28 
     29 # Clean up
     30 clean:
     31 	rm -f *.o mod/*.o
     32 
     33 # vi:noet:ts=4:sw=4