Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to make makefile

# !!! DON'T FORGET TO REPLACE ALL SPACEBAR TO TAB BEFORE EACH "$(CC)" AND BEFORE "rm"

#variable declaration

CCFLAGS = -Wall
CC = gcc

# fordítási szabályok 

example : help.o example.o
	$(CC) help.o example.o -o example   
               
help.o : help.c date.h help.h
	$(CC) help.c -c $(CCFLAGS)

example.o : example.c date.h help.h
	$(CC) example.c -c $(CCFLAGS)

# delete commands  
       
.PHONY : clean 
clean : 
	rm -f example help.o example.o core *~
Source by canvas2.cs.ubbcluj.ro #
 
PREVIOUS NEXT
Tagged: #makefile
ADD COMMENT
Topic
Name
5+7 =