configure not needed for librarian. Makefile is enough.
[fw/sdcc] / support / librarian / Makefile
diff --git a/support/librarian/Makefile b/support/librarian/Makefile
new file mode 100644 (file)
index 0000000..c1a6739
--- /dev/null
@@ -0,0 +1,53 @@
+PRJDIR          = ../..
+
+include $(PRJDIR)/Makefile.common
+
+CFLAGS          += -Wall
+
+OBJECTS        = sdcclib.o
+
+SOURCES                = $(patsubst %.o,%.c,$(OBJECTS))
+
+TARGET         = $(PRJDIR)/bin/sdcclib$(EXEEXT)
+
+all: $(TARGET)
+
+install: all installdirs
+       $(INSTALL) $(TARGET) `echo $(bindir)/sdcclib$(EXEEXT)|sed '$(transform)'`
+       $(STRIP) `echo $(bindir)/sdcclib$(EXEEXT)|sed '$(transform)'`
+
+# Deleting all the installed files
+# --------------------------------
+uninstall:
+       rm -f $(bindir)/sdcclib$(EXEEXT)
+
+# Performing self-test
+# --------------------
+check:
+
+
+# Performing installation test
+# ----------------------------
+installcheck:
+
+
+# Creating installation directories
+# ---------------------------------
+installdirs:
+       $(INSTALL) -d $(bindir)
+
+
+# Creating dependencies
+# ---------------------
+dep:
+
+$(TARGET): $(OBJECTS)
+       $(CC) $(LDFLAGS) -o $@ $(OBJECTS)
+
+.c.o:
+       $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
+
+
+checkconf:
+
+include clean.mk