diff --git a/src/target/Makefile b/src/target/Makefile index b077514..075cbdd 100644 --- a/src/target/Makefile +++ b/src/target/Makefile @@ -1,4 +1,4 @@ -TARGETS = as.a as.so graph.a graph.so indent.a indent.so +TARGETS = as.so graph.so indent.so PREFIX = /usr/local DESTDIR = LIBDIR = $(PREFIX)/lib @@ -22,34 +22,22 @@ as_OBJS = as.o as_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) as_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -L $(LIBDIR) -Wl,-rpath $(LIBDIR) -l as -as.a: $(as_OBJS) - $(AR) as.a $(as_OBJS) - $(RANLIB) as.a - as.so: $(as_OBJS) - $(LD) -o as.so -Wl,-soname,as.so.0 $(as_OBJS) -L $(LIBDIR) -Wl,-rpath $(LIBDIR) -l as + $(LD) -o as.so $(as_OBJS) -L $(LIBDIR) -Wl,-rpath $(LIBDIR) -l as graph_OBJS = graph.o graph_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) graph_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -graph.a: $(graph_OBJS) - $(AR) graph.a $(graph_OBJS) - $(RANLIB) graph.a - graph.so: $(graph_OBJS) - $(LD) -o graph.so -Wl,-soname,graph.so.0 $(graph_OBJS) + $(LD) -o graph.so $(graph_OBJS) indent_OBJS = indent.o indent_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) indent_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) -indent.a: $(indent_OBJS) - $(AR) indent.a $(indent_OBJS) - $(RANLIB) indent.a - indent.so: $(indent_OBJS) - $(LD) -o indent.so -Wl,-soname,indent.so.0 $(indent_OBJS) + $(LD) -o indent.so $(indent_OBJS) as.o: as.c ../../include/c99/target.h ../../config.h $(CC) $(as_CFLAGS) -c as.c @@ -68,33 +56,15 @@ distclean: clean install: all $(MKDIR) $(DESTDIR)$(LIBDIR)/c99/target - $(INSTALL) -m 0644 as.a $(DESTDIR)$(LIBDIR)/c99/target/as.a - $(INSTALL) -m 0755 as.so $(DESTDIR)$(LIBDIR)/c99/target/as.so.0.0 - $(LN) -s as.so.0.0 $(DESTDIR)$(LIBDIR)/c99/target/as.so.0 - $(LN) -s as.so.0.0 $(DESTDIR)$(LIBDIR)/c99/target/as.so + $(INSTALL) -m 0644 as.so $(DESTDIR)$(LIBDIR)/c99/target/as.so $(MKDIR) $(DESTDIR)$(LIBDIR)/c99/target - $(INSTALL) -m 0644 graph.a $(DESTDIR)$(LIBDIR)/c99/target/graph.a - $(INSTALL) -m 0755 graph.so $(DESTDIR)$(LIBDIR)/c99/target/graph.so.0.0 - $(LN) -s graph.so.0.0 $(DESTDIR)$(LIBDIR)/c99/target/graph.so.0 - $(LN) -s graph.so.0.0 $(DESTDIR)$(LIBDIR)/c99/target/graph.so + $(INSTALL) -m 0644 graph.so $(DESTDIR)$(LIBDIR)/c99/target/graph.so $(MKDIR) $(DESTDIR)$(LIBDIR)/c99/target - $(INSTALL) -m 0644 indent.a $(DESTDIR)$(LIBDIR)/c99/target/indent.a - $(INSTALL) -m 0755 indent.so $(DESTDIR)$(LIBDIR)/c99/target/indent.so.0.0 - $(LN) -s indent.so.0.0 $(DESTDIR)$(LIBDIR)/c99/target/indent.so.0 - $(LN) -s indent.so.0.0 $(DESTDIR)$(LIBDIR)/c99/target/indent.so + $(INSTALL) -m 0644 indent.so $(DESTDIR)$(LIBDIR)/c99/target/indent.so uninstall: - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/as.a - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/as.so.0.0 - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/as.so.0 $(RM) $(DESTDIR)$(LIBDIR)/c99/target/as.so - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/graph.a - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/graph.so.0.0 - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/graph.so.0 $(RM) $(DESTDIR)$(LIBDIR)/c99/target/graph.so - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/indent.a - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/indent.so.0.0 - $(RM) $(DESTDIR)$(LIBDIR)/c99/target/indent.so.0 $(RM) $(DESTDIR)$(LIBDIR)/c99/target/indent.so .PHONY: all clean distclean install uninstall diff --git a/src/target/project.conf b/src/target/project.conf index 0616172..0870131 100644 --- a/src/target/project.conf +++ b/src/target/project.conf @@ -5,7 +5,7 @@ cflags=-Wall -g -O2 -fPIC -pedantic dist=Makefile [as] -type=library +type=plugin sources=as.c ldflags=-L $(LIBDIR) -Wl,-rpath $(LIBDIR) -l as install=$(LIBDIR)/c99/target @@ -14,7 +14,7 @@ install=$(LIBDIR)/c99/target depends=../../include/c99/target.h,../../config.h [graph] -type=library +type=plugin sources=graph.c install=$(LIBDIR)/c99/target @@ -22,7 +22,7 @@ install=$(LIBDIR)/c99/target depends=../../include/c99/target.h [indent] -type=library +type=plugin sources=indent.c install=$(LIBDIR)/c99/target