All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.Makefile.txt Maven / Gradle / Ivy

There is a newer version: 2.0.5
Show newest version
# Makefile generated by codegenj (https://github.com/olir/codegenj) - DO NOT EDIT!

PKGDEPS = glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0

IDIR =./include
CC=gcc
CFLAGS=-fPIC -Wall -g -I. -I$(IDIR) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux -I/usr/lib/x86_64-linux-gnu/glib-2.0/include $(shell pkg-config --cflags $(PKGDEPS))

ODIR=obj
LDIR =../lib

LIBS=-L/lib/arm-linux-gnueabihf -lm $(shell pkg-config --libs $(PKGDEPS))

_DEPS = $$$headerfiles$$$
DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS))

_OBJ = $$$library$$$-codegen.o ObjectManager.o $$$objfiles$$$
OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ))

$(IDIR)/%.h:
	javah -d include -classpath ../classes $$$classlist$$$

$$$library$$$-codegen.c: $(IDIR)/%.h
	gdbus-codegen --generate-c-code=$$$library$$$-codegen --c-generate-object-manager --c-namespace= --interface-prefix=$$$iprefix$$$ ../classes/$$$xmlfile$$$

$(ODIR):
	mkdir $@
	
$(ODIR)/%.o: %.c $(DEPS) $(ODIR)
	$(CC) -c -o $@ $< $(CFLAGS)

lib$$$library$$$.so.1.0: $(OBJ)
	gcc -ggdb3 -shared -lc -o $@ $^ $(CFLAGS) $(LIBS)

all: lib$$$library$$$.so.1.0

.PHONY: clean

clean:
	rm -f $(ODIR)/*.o *~ lib$$$library$$$.so.1.0 $(INCDIR)/*~ $$$library$$$-codegen.c $(IDIR)/*.h





© 2015 - 2025 Weber Informatics LLC | Privacy Policy