1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-06-12 17:14:46 +02:00

Makefiles: switch from suffix rules to pattern rules. As suffix rules

can't have dependencies, so if you change a .h file, it fails to
recompile the other dependencies. Grmpf!
This does mean that we require GNU Make (gmake) from now on.
This commit is contained in:
Bram Matthys
2021-09-04 08:17:31 +02:00
parent 9ef1d06afd
commit 894b7e5461
6 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -83,7 +83,7 @@ mods:
version.c: version.c.SH version.c: version.c.SH
$(SHELL) version.c.SH $(SHELL) version.c.SH
.c.o: $(INCLUDES) %.o: %.c $(INCLUDES)
$(CC) $(CFLAGS) $(BINCFLAGS) -c $< $(CC) $(CFLAGS) $(BINCFLAGS) -c $<
clean: clean:
+1 -1
View File
@@ -105,7 +105,7 @@ clean:
cd third; $(MAKE) clean cd third; $(MAKE) clean
# Generic *.so rule: # Generic *.so rule:
.c.so: $(INCLUDES) %.so: %.c $(INCLUDES)
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \ $(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
-o $@ $< -o $@ $<
+1 -1
View File
@@ -53,6 +53,6 @@ build: $(MODULES)
clean: clean:
$(RM) -f *.o *.so *~ core $(RM) -f *.o *.so *~ core
.c.so: $(INCLUDES) %.so: %.c $(INCLUDES)
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \ $(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
-o $@ $< -o $@ $<
+1 -1
View File
@@ -51,6 +51,6 @@ build: $(MODULES)
clean: clean:
$(RM) -f *.o *.so *~ core $(RM) -f *.o *.so *~ core
.c.so: $(INCLUDES) %.so: %.c $(INCLUDES)
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \ $(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
-o $@ $< -o $@ $<
+1 -1
View File
@@ -48,6 +48,6 @@ build: $(MODULES)
clean: clean:
$(RM) -f *.o *.so *~ core $(RM) -f *.o *.so *~ core
.c.so: $(INCLUDES) %.so: %.c $(INCLUDES)
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \ $(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
-o $@ $< -o $@ $<
+1 -1
View File
@@ -49,6 +49,6 @@ build: $(MODULES)
clean: clean:
$(RM) -f *.o *.so *~ core $(RM) -f *.o *.so *~ core
.c.so: $(INCLUDES) %.so: %.c $(INCLUDES)
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \ $(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
-o $@ $< -o $@ $<