Skip to content

Instantly share code, notes, and snippets.

View roma-guru's full-sized avatar
🌴
In Cyprus

Roman Voropaev roma-guru

🌴
In Cyprus
View GitHub Profile
@roma-guru
roma-guru / Makefile-linux
Created November 26, 2015 20:27
Makefile examples
SRC=hello.c main.c
OBJ=$(SRC:.c=.o) # replaces the .c from SRC with .o
EXE=hello
CC=gcc
CFLAGS=-Wall -O3
LDFLAGS=
RM=rm
%.o: %.c # combined w/ next line will compile recently changed .c files