mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 17:40:11 +01:00
51 lines
1.1 KiB
Makefile
51 lines
1.1 KiB
Makefile
SHELL = @SHELL@
|
|
|
|
prefix = @prefix@
|
|
exec_prefix = @exec_prefix@
|
|
bindir = @bindir@
|
|
sbindir = @sbindir@
|
|
includedir = @includedir@
|
|
libdir = @libdir@
|
|
libexecdir = @libexecdir@
|
|
srcdir = @srcdir@
|
|
sysconfdir = @sysconfdir@
|
|
mandir = @mandir@
|
|
datarootdir = @datarootdir@
|
|
localstatedir = @localstatedir@
|
|
|
|
CC = @CC@
|
|
CFLAGS = @CFLAGS@ @CPPFLAGS@
|
|
DEFS = @defs@
|
|
INCDIR = -I. -I.. -I../.. -I../../src -I../src @INCDIR@ @mysql_includes@
|
|
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../src
|
|
LIBS = @LIBS@ @mysql_libs@
|
|
RUNNING_USER = @RUNNING_USER@
|
|
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
|
|
OBJS = import_helper.o
|
|
|
|
INSTALL = @INSTALL@
|
|
|
|
all: $(OBJS) parser debug import
|
|
|
|
parser: parser.c ../src/libpiler.a
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
debug: debug.c ../src/libpiler.a
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
|
|
|
import: import.c ../src/libpiler.a
|
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler import_helper.o $(LIBS) $(LIBDIR)
|
|
|
|
|
|
%.o: $(srcdir)/%.c
|
|
$(CC) $(CFLAGS) -fPIC $(INCDIR) $(DEFS) -c $< -o $@
|
|
|
|
|
|
install:
|
|
|
|
clean:
|
|
rm -f parser debug import
|
|
|
|
distclean: clean
|
|
rm -f Makefile
|