Lucian Poston 5 سال پیش
والد
کامیت
a3a89a2c99
1فایلهای تغییر یافته به همراه7 افزوده شده و 2 حذف شده
  1. 7 2
      src/Makefile.in

+ 7 - 2
src/Makefile.in

@@ -56,6 +56,11 @@ DEFAULT_FILE_DIR = $(HOME)
 
 FFLAGS= $(F1) $(F6)
 
+HEADERS = \
+config.h \
+dict.h \
+telnet.h \
+tintin.h
 
 OFILES = \
 files.o help.o trigger.o input.o main.o misc.o net.o parse.o debug.o \
@@ -71,7 +76,7 @@ default: all
 all:	tt++
 
 
-tt++:	Makefile $(OFILES) tintin.h
+tt++:	Makefile $(OFILES)
 	@echo "---- Linking..."
 	$(CC) $(INCS) $(CFLAGS) $(FFLAGS) $(LDFLAGS) -o $@ $(OFILES) $(LIBS) ${LIBSOCKS}
 
@@ -89,7 +94,7 @@ install: tt++
 
 
 # Autocompile all .c files into .o files using this rule:
-.c.o:
+%.o: %.c $(HEADERS)
 	$(CC) $(PIPE) $(CFLAGS) $(FFLAGS) $(INCS) -c $<