diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -9,10 +9,12 @@ CFLAGS=-Wall SOURCES=*.c HEADERS=*.h -all: $(SOURCES) $(HEADERS) program_info_header +all: $(PROGRAM_NAME) + +$(PROGRAM_NAME): $(SOURCES) $(HEADERS) program_info.h $(CC) $(CFLAGS) -o $(PROGRAM_NAME) $(SOURCES) -program_info_header: +program_info.h: echo "#define PROGRAM_NAME_STR \"$(PROGRAM_NAME)\"" >program_info.h echo "#define PROGRAM_VERSION_STR \"$(PROGRAM_VERSION)\"" >>program_info.h |
