nss-packages-qosmio/nss-userspace-oss/patches/000-create-makefile.patch
Sean Khan ff7d2b1c00 nss-info: remove source and switch to repo based build
Signed-off-by: Sean Khan <datapronix@protonmail.com>
2025-07-10 21:57:22 -04:00

29 lines
572 B
Diff

--- /dev/null
+++ b/Makefile
@@ -0,0 +1,24 @@
+# Define the build directories based on flags
+DIRS-y :=
+DIRS-$(BUILD_LIBNSS) += lib
+DIRS-$(BUILD_NSSINFO) += nssinfo
+DIRS-$(BUILD_NETFN) += netfn
+DIRS-$(BUILD_LIBPPE) += ppe/ppenl_lib
+DIRS-$(BUILD_PPECFG) += ppe/ppecfg
+
+# Main targets
+all: $(DIRS-y)
+ @echo "Build complete"
+
+# Pattern rule to build each directory
+$(DIRS-y):
+ $(MAKE) -C $@
+
+clean:
+ @for dir in $(DIRS-y); do \
+ if [ -d $$dir ]; then \
+ $(MAKE) -C $$dir clean; \
+ fi \
+ done
+
+.PHONY: all clean $(DIRS-y)
\ No newline at end of file