mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 07:30:12 +01:00
fixed makefiles
This commit is contained in:
parent
aeb10573f4
commit
2d828c2be7
@ -38,7 +38,7 @@ install: install-piler
|
|||||||
|
|
||||||
|
|
||||||
piler: piler.c libpiler.a
|
piler: piler.c libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ piler.c -lpiler $(LIBS) $(LIBDIR) @LDFLAGS@ @libclamav_extra_libs@
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR) @LDFLAGS@ @libclamav_extra_libs@
|
||||||
|
|
||||||
libpiler.a: $(OBJS) $(MYSQL_OBJS)
|
libpiler.a: $(OBJS) $(MYSQL_OBJS)
|
||||||
ar cr libpiler.a $(OBJS) $(MYSQL_OBJS)
|
ar cr libpiler.a $(OBJS) $(MYSQL_OBJS)
|
||||||
@ -49,25 +49,25 @@ libpiler.a: $(OBJS) $(MYSQL_OBJS)
|
|||||||
|
|
||||||
|
|
||||||
pilerget: pilerget.c libpiler.a
|
pilerget: pilerget.c libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler $(LIBS) $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
||||||
|
|
||||||
pilerimport: pilerimport.c libpiler.a
|
pilerimport: pilerimport.c libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler $(LIBS) $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
||||||
|
|
||||||
pilerexport: pilerexport.c libpiler.a
|
pilerexport: pilerexport.c libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler $(LIBS) $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
||||||
|
|
||||||
pilerpurge: pilerpurge.c libpiler.a
|
pilerpurge: pilerpurge.c libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler $(LIBS) $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
||||||
|
|
||||||
pilerconf: pilerconf.c cfg.o misc.o tai.o
|
pilerconf: pilerconf.c cfg.o misc.o tai.o
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ $(LIBDIR)
|
||||||
|
|
||||||
reindex: reindex.c libpiler.a
|
reindex: reindex.c libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler $(LIBS) $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
||||||
|
|
||||||
test: test.c libpiler.a
|
test: test.c libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o pilertest $^ -lpiler $(LIBS) $(LIBDIR) @LDFLAGS@
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o pilertest $< -lpiler $(LIBS) $(LIBDIR) @LDFLAGS@
|
||||||
|
|
||||||
%.o: $(srcdir)/%.c
|
%.o: $(srcdir)/%.c
|
||||||
$(CC) $(CFLAGS) -fPIC $(INCDIR) $(DEFS) -c $< -o $@
|
$(CC) $(CFLAGS) -fPIC $(INCDIR) $(DEFS) -c $< -o $@
|
||||||
|
@ -17,7 +17,7 @@ CC = @CC@
|
|||||||
CFLAGS = @CFLAGS@ @CPPFLAGS@
|
CFLAGS = @CFLAGS@ @CPPFLAGS@
|
||||||
DEFS = @defs@
|
DEFS = @defs@
|
||||||
INCDIR = -I. -I.. -I../.. -I../../src -I../src @INCDIR@ @mysql_includes@
|
INCDIR = -I. -I.. -I../.. -I../../src -I../src @INCDIR@ @mysql_includes@
|
||||||
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../../src
|
LIBDIR = -L. @LIBDIR@ @LDFLAGS@ -L../src
|
||||||
LIBS = @LIBS@ @mysql_libs@
|
LIBS = @LIBS@ @mysql_libs@
|
||||||
RUNNING_USER = @RUNNING_USER@
|
RUNNING_USER = @RUNNING_USER@
|
||||||
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
|
RUNNING_GROUP = `@id_bin@ -gn $(RUNNING_USER)`
|
||||||
@ -28,13 +28,13 @@ INSTALL = @INSTALL@
|
|||||||
all: $(OBJS) parser debug import
|
all: $(OBJS) parser debug import
|
||||||
|
|
||||||
parser: parser.c ../src/libpiler.a
|
parser: parser.c ../src/libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler $(LIBS) $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
||||||
|
|
||||||
debug: debug.c ../src/libpiler.a
|
debug: debug.c ../src/libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler $(LIBS) $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler $(LIBS) $(LIBDIR)
|
||||||
|
|
||||||
import: import.c ../src/libpiler.a
|
import: import.c ../src/libpiler.a
|
||||||
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $^ -lpiler import_helper.o $(LIBS) $(LIBDIR)
|
$(CC) $(CFLAGS) $(INCDIR) $(DEFS) -o $@ $< -lpiler import_helper.o $(LIBS) $(LIBDIR)
|
||||||
|
|
||||||
|
|
||||||
%.o: $(srcdir)/%.c
|
%.o: $(srcdir)/%.c
|
||||||
|
Loading…
Reference in New Issue
Block a user