chiark / gitweb /
hostside: hidrawconv: rename various variables and functions to be more sensible...
[trains.git] / cprogs.make
index 00bf7e5040c673850466d17579f85afa8adbad8b..22ec57067f54c46f2edc6d0ce495c7ec1d7b2c0a 100644 (file)
@@ -14,8 +14,12 @@ BISON=bison
 FLEXCFLAGS=    -Wno-unused -Wno-missing-declarations -Wno-missing-prototypes
 
 %.o:   %.c $(AUTOINCS)
-       $(CC) $(CFLAGS) $(SPECIAL_CFLAGS_$*) -MM $< >$*.d
-       $(CC) $(CFLAGS) $(SPECIAL_CFLAGS_$*) -o $@ -c $<
+       $(CC) $(CFLAGS) $(SPECIAL_CFLAGS_$*) -MMD -o $@ -c $<
 
 %.c:   %.y
        $(BISON) -o $@ $<
+
+ETAGS_SRCS += $(wildcard *.[ch])
+
+TAGS:  $(ETAGS_SRCS)
+       etags $^