# # Projekt: Hello world! # Autor: David Martinek # Datum: 3.6.2004 # # Použití: # - překlad: make # - ladit: make debug # - zabalit: make pack # - vyčistit: make clean # - vyčistit vše: make clean-all # NAME=hello CC=gcc # překladač jazyka C CFLAGS=-std=c99 -Wall -pedantic -W -g # parametry překladače ALLFILES=helloworld.c makefile # obsah projektu $(NAME): helloworld.c $(CC) $(CFLAGS) helloworld.c -o $(NAME) .PHONY: debug pack clean clean-exe clean-all debug: $(NAME) export XEDITOR=gvim;ddd $(NAME) pack: tar cvzf $(NAME).tar.gz $(ALLFILES) zip $(NAME).zip $(ALLFILES) clean: rm -f *~ *.bak clean-exe: rm -f $(NAME) clean-all: clean-exe clean