#general makefile
PROGS=example
OBJ=hello
SRC=example.c
SRCTWO=hello.c
CC=gcc
LOPTION=-lm -o
OPTION=-c -Wall -ansi -pedantic
all: $(PROGS)
$(PROGS): $(PROGS).o $(OBJ).o
$(CC) $(LOPTION) $(PROGS) $(PROGS).o $(OBJ).o
$(OBJ).o: $(SRCTWO)
$(CC) $(OPTION) $(SRCTWO)
$(PROGS).o: $(SRC)
$(CC) $(OPTION) $(SRC)
clean:
rm -f $(OBJ).o $(PROGS).o $(PROGS) $(PROGS).cpp~ $(PROGS).c~ $(PROGS).exe Makefile~
# |
Change |
User |
Description |
Committed |
|
#3
|
8645 |
Stephen Moon |
removing not up-to-date scripts |
|
|
#2
|
7657 |
Stephen Moon |
added & in front of functions to insure that there is no namespace issue |
|
|
#1
|
7566 |
Stephen Moon |
A simple change content trigger example which accepts or rejects a change whether or not the build is made |
|
|