diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2012-06-03 10:07:58 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2012-06-03 10:07:58 +0200 |
commit | 075e33ca803378fa42187ecf5fd44a57e061a84a (patch) | |
tree | 3e27a24788e2ca698eecca8eda99978c4239ecc0 /recipes/gpioconfig/files/Makefile |
Initial commit
Diffstat (limited to 'recipes/gpioconfig/files/Makefile')
-rwxr-xr-x | recipes/gpioconfig/files/Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes/gpioconfig/files/Makefile b/recipes/gpioconfig/files/Makefile new file mode 100755 index 0000000..2b0143d --- /dev/null +++ b/recipes/gpioconfig/files/Makefile @@ -0,0 +1,31 @@ +CROSS_COMPILE ?= /vibrante/toolchains/tegra2-4.4.1-nv/bin/arm-none-linux-gnueabi- +CC ?= $(CROSS_COMPILE)gcc +STRIP ?= $(CROSS_COMPILE)strip + +SYSROOT_DIR=/srv/nfs/rootfs-include-lib-gtk +prefix = "" +bindir = $(prefix)/usr/bin + +CFLAGS ?= -Wall -g -O2 `pkg-config --cflags gtk+-2.0` + +#DRV = gpio_usr_drv + +PROG = GPIOConfig + +OBJS = gpio_gtk.o custom-list.o gpio_usr_drv.o + +all: $(OBJS) +# $(CC) -o $(DRV) $(DRV).c + $(CC) -o $(PROG) $(OBJS) $(LDFLAGS) `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -L $(SYSROOT_DIR)/usr/lib -Wl,--allow-shlib-undefined + $(STRIP) $(PROG) + +%o: %c + $(CC) $(CFLAGS) $(CPPFLAGS) `pkg-config --cflags gtk+-2.0` -c $< + +clean: + rm -f $(DRV) $(PROG) $(OBJS) *.o~ *.h~ 2>/dev/null + +install: + install -d $(bindir) + install $(PROG) $(bindir) + |