piler/test/Makefile.in

51 lines
1.1 KiB
Makefile
Raw Normal View History

2012-07-23 16:29:10 +02:00
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@
2012-07-24 21:28:55 +02:00
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../src
2012-07-23 16:29:10 +02:00
LIBS = @LIBS@ @mysql_libs@
RUNNING_USER = @RUNNING_USER@
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
2012-07-24 21:27:48 +02:00
OBJS = import_helper.o
2012-07-23 16:29:10 +02:00
INSTALL = @INSTALL@
2012-07-24 21:27:48 +02:00
all: $(OBJS) parser debug import
2012-07-23 16:29:10 +02:00
parser: parser.c ../src/libpiler.a
2012-07-24 21:28:55 +02:00
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
2012-07-23 16:29:10 +02:00
debug: debug.c ../src/libpiler.a
2012-07-24 21:28:55 +02:00
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
2012-07-23 16:29:10 +02:00
2012-07-24 21:27:48 +02:00
import: import.c ../src/libpiler.a
2012-07-24 21:28:55 +02:00
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler import_helper.o $(LIBS) $(LIBDIR)
2012-07-24 21:27:48 +02:00
%.o: $(srcdir)/%.c
$(CC) $(CFLAGS) -fPIC $(INCDIR) $(DEFS) -c $< -o $@
2012-07-23 16:29:10 +02:00
2012-07-24 21:27:48 +02:00
install:
2012-07-23 16:29:10 +02:00
clean:
2012-07-24 21:27:48 +02:00
rm -f parser debug import
2012-07-23 16:29:10 +02:00
distclean: clean
rm -f Makefile