[Frugalware-darcs] setup: plugins buildsystem: big cleanup

VMiklos vmiklos at frugalware.org
Wed Mar 29 23:53:56 CEST 2006


[plugins buildsystem: big cleanup
VMiklos <vmiklos at frugalware.org>**20051107234155] {
hunk ./src/plugins/Makefile 2
-CFLAGS += -I..
+CFLAGS += -I.. $(FINAL) -DARCH="\"$(shell arch)\""
hunk ./src/plugins/Makefile 6
-CFLAGS += $(FINAL) -DARCH="\"$(shell arch)\""
+
hunk ./src/plugins/Makefile 9
+
hunk ./src/plugins/Makefile 17
-
-asklang: asklang.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,asklang.so -o asklang.so \
-		asklang.o ../util.o $(LDFLAGS)
-
-dolangsh: dolangsh.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,dolangsh.so -o dolangsh.so \
-		dolangsh.o ../util.o $(LDFLAGS)
-
-greet: greet.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,greet.so -o greet.so \
-		greet.o ../util.o $(LDFLAGS)
-
-layout: layout.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,layout.so -o layout.so \
-		layout.o ../util.o $(LDFLAGS)
-
-hotplug: hotplug.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,hotplug.so -o hotplug.so \
-		hotplug.o ../util.o $(LDFLAGS)
-
-loadsource: loadsource.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,loadsource.so -o loadsource.so \
-		loadsource.o ../util.o $(LDFLAGS)
-
-configsource: configsource.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,configsource.so -o \
-		configsource.so configsource.o ../util.o $(LDFLAGS)
-
-partdisk: partdisk.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,partdisk.so -o partdisk.so \
-		partdisk.o ../util.o $(LDFLAGS) $(PEDLDFLAGS)
-
-restart: restart.o ../util.o
-	$(CC) $(CFLAGS) -shared -Wl,-soname,restart.so -o restart.so \
-		restart.o ../util.o $(LDFLAGS)
+	@echo Build completed.
hunk ./src/plugins/Makefile 25
+
+%:
+	$(CC) $(CFLAGS) -shared -Wl,-soname,$@.so -o $@.so $@.c $(LDFLAGS)
}


More information about the Frugalware-darcs mailing list