All pastes #822472 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-12-18 19:29 UTC
rendered paste body
CC=gcc
LFLAGS=-Wall
CFLAGS=-W -O2 

SRC=$(wildcard *.c)
EXE=tp3

OBJ=$(SRC:.c=.o)

$(EXE): $(OBJ)
        $(CC) $(LFLAGS) $^ -o $@

.SUFFIXES: .c

%.o: %.c 
        $(CC) $(CFLAGS) -c $<   

depend:
        makedepend -- $(CFLAGS) -- $(SRC)

clean:
        rm -f $(OBJ)

cleanall: clean
        rm -f $(EXE)