mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-12 15:34:47 +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:
+1
-1
@@ -83,7 +83,7 @@ mods:
|
||||
version.c: version.c.SH
|
||||
$(SHELL) version.c.SH
|
||||
|
||||
.c.o: $(INCLUDES)
|
||||
%.o: %.c $(INCLUDES)
|
||||
$(CC) $(CFLAGS) $(BINCFLAGS) -c $<
|
||||
|
||||
clean:
|
||||
|
||||
@@ -105,7 +105,7 @@ clean:
|
||||
cd third; $(MAKE) clean
|
||||
|
||||
# Generic *.so rule:
|
||||
.c.so: $(INCLUDES)
|
||||
%.so: %.c $(INCLUDES)
|
||||
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
|
||||
-o $@ $<
|
||||
|
||||
|
||||
@@ -53,6 +53,6 @@ build: $(MODULES)
|
||||
clean:
|
||||
$(RM) -f *.o *.so *~ core
|
||||
|
||||
.c.so: $(INCLUDES)
|
||||
%.so: %.c $(INCLUDES)
|
||||
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
|
||||
-o $@ $<
|
||||
|
||||
@@ -51,6 +51,6 @@ build: $(MODULES)
|
||||
clean:
|
||||
$(RM) -f *.o *.so *~ core
|
||||
|
||||
.c.so: $(INCLUDES)
|
||||
%.so: %.c $(INCLUDES)
|
||||
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
|
||||
-o $@ $<
|
||||
|
||||
@@ -48,6 +48,6 @@ build: $(MODULES)
|
||||
clean:
|
||||
$(RM) -f *.o *.so *~ core
|
||||
|
||||
.c.so: $(INCLUDES)
|
||||
%.so: %.c $(INCLUDES)
|
||||
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
|
||||
-o $@ $<
|
||||
|
||||
@@ -49,6 +49,6 @@ build: $(MODULES)
|
||||
clean:
|
||||
$(RM) -f *.o *.so *~ core
|
||||
|
||||
.c.so: $(INCLUDES)
|
||||
%.so: %.c $(INCLUDES)
|
||||
$(CC) $(CFLAGS) $(MODULEFLAGS) -DDYNAMIC_LINKING \
|
||||
-o $@ $<
|
||||
|
||||
Reference in New Issue
Block a user