Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- EXEC=hello
- SRC= $(wildcard *.c)
- OBJ= $(SRC:.c=.o)
- all: $(EXEC)
- hello: $(OBJ)
- @$(CC) -o $@ $^ $(LDFLAGS)
- %.o: %.c
- @$(CC) -o $@ -c $< $(CFLAGS)
- .PHONY: clean mrproper
- clean:
- @rm *.o
- mrproper: clean
- @rm $(EXEC)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement