rather than hard code config.h (which is normally generated)
authorMichael Richardson <mcr@sandelman.ca>
Mon, 17 Feb 2014 17:13:17 +0000 (12:13 -0500)
committerMichael Richardson <mcr@sandelman.ca>
Mon, 17 Feb 2014 18:12:53 +0000 (13:12 -0500)
save a copy in a subdir, and copy it in when building on Android

.gitignore [new file with mode: 0644]
Android.mk
Android/config.h [moved from config.h with 100% similarity]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..5aba5ca
--- /dev/null
@@ -0,0 +1,11 @@
+*~
+*.orig
+*.rej
+tests/DIFF
+tests/NEW
+tests/.failed
+tests/.passed
+config.log
+config.status
+Makefile
+*.o
index b479f422534ca258a42b3de5dc0e250e32b3e4c2..dead361906d7993646542be4bf9ff26d3716d773 100644 (file)
@@ -113,12 +113,15 @@ LOCAL_SRC_FILES:=\
        setsignal.c\
        tcpdump.c\
        util.c\
-       version.c\
+       version.c config.h \
        print-smb.c\
        smbutil.c\
        missing/strlcat.c\
        missing/strlcpy.c
 
+${LOCAL_PATH}/config.h:
+       cp $(LOCAL_PATH)/Android/config.h $(LOCAL_PATH)/config.h
+
 LOCAL_CFLAGS:=-O2 -g -DANDROID
 LOCAL_CFLAGS+=-DHAVE_CONFIG_H -D_U_="__attribute__((unused))"
 
similarity index 100%
rename from config.h
rename to Android/config.h