summaryrefslogtreecommitdiffstats
path: root/target/device/Soekris/soekris_gpio/Makefile
diff options
context:
space:
mode:
authorDavid Anders <dave123@abcsinc.com>2006-01-23 20:13:15 +0000
committerDavid Anders <dave123@abcsinc.com>2006-01-23 20:13:15 +0000
commit59e9a3c8b8eccfcde597571fa08895f754843107 (patch)
tree6925086573b144769c9f828f0a53d9f5218181a0 /target/device/Soekris/soekris_gpio/Makefile
parent2bf4d8365339974e7ca51b21b6c485f0f1ef039b (diff)
downloadbuildroot-novena-59e9a3c8b8eccfcde597571fa08895f754843107.tar.gz
buildroot-novena-59e9a3c8b8eccfcde597571fa08895f754843107.zip
added the soekris net4801 target per case 0000613
Diffstat (limited to 'target/device/Soekris/soekris_gpio/Makefile')
-rw-r--r--target/device/Soekris/soekris_gpio/Makefile43
1 files changed, 43 insertions, 0 deletions
diff --git a/target/device/Soekris/soekris_gpio/Makefile b/target/device/Soekris/soekris_gpio/Makefile
new file mode 100644
index 000000000..d96c9b707
--- /dev/null
+++ b/target/device/Soekris/soekris_gpio/Makefile
@@ -0,0 +1,43 @@
+#
+# This Makefile is based on the one distributed with the soekris gpio drivers.
+# It is modified to work within buildroot.
+#
+
+include $(LINUX_KCONFIG)
+
+CFLAGS =-O2 -DMODULE -D__KERNEL__ -I$(LINUX_SOURCE_DIR)/include -Wall
+TARGET := gpio
+
+ifdef CONFIG_SMP
+ CFLAGS +=-D__SMP__-DSMP
+endif
+
+all: gpio.o writelcd.o
+
+gpio.o: common.o 4501driver.o 4801driver.o
+ $(LD) -r 4501driver.o 4801driver.o common.o -o gpio.o
+
+4501gpio.o: common.o 4501driver.o
+ $(LD) -r 4501driver.o common.o -o 4501gpio.o
+
+4501driver.o: 4501driver.c 4501driver.h
+ $(CC) $(CFLAGS) -c 4501driver.c -o 4501driver.o
+
+4801gpio.o: common.o 4801driver.o
+ $(LD) -r 4801driver.o common.o -o 4801gpio.o
+
+4801driver.o: 4801driver.c 4801driver.h
+ $(CC) $(CFLAGS) -c 4801driver.c -o 4801driver.o
+
+writelcd.o: common_writelcd.o 4801driver.o 4501driver.o
+ $(LD) -r 4801driver.o 4501driver.o common_writelcd.o -o writelcd.o
+
+common.o: common.c common.h
+ $(CC) $(CFLAGS) -c common.c -o common.o
+
+common_writelcd.o: common_writelcd.c common.h
+ $(CC) $(CFLAGS) -c common_writelcd.c -o common_writelcd.o
+
+clean:
+ rm -f *.o *~ core
+