Skip to content
Snippets Groups Projects
Commit fdce8868 authored by Boris Stefanovic's avatar Boris Stefanovic
Browse files

structure

parents
No related branches found
No related tags found
No related merge requests found
*.o
ex1/ex1
ex2/ex2
ex3/ex3
ex4/ex4
CC = gcc
CFLAGS = -std=c11 -Wall -Wextra -fsanitize=address -fsanitize=leak -pedantic -g
LDFLAGS = ${CFLAGS} -lm
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c,%.o,${SRC})
TARGET = $(patsubst %.c,%,${SRC})
${TARGET}: ${OBJ}
${OBJ}: ${SRC}
.PHONY: clean
clean:
rm -rf ${OBJ} ${TARGET}
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int main(int argc, char **argv) {
return EXIT_SUCCESS;
}
CC = gcc
CFLAGS = -std=c11 -Wall -Wextra -fsanitize=address -fsanitize=leak -pedantic -g
LDFLAGS = ${CFLAGS} -lm
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c,%.o,${SRC})
TARGET = $(patsubst %.c,%,${SRC})
${TARGET}: ${OBJ}
${OBJ}: ${SRC}
.PHONY: clean
clean:
rm -rf ${OBJ} ${TARGET}
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int main(int argc, char **argv) {
return EXIT_SUCCESS;
}
CC = gcc
CFLAGS = -std=c11 -Wall -Wextra -fsanitize=address -fsanitize=leak -pedantic -g
LDFLAGS = ${CFLAGS} -lm
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c,%.o,${SRC})
TARGET = $(patsubst %.c,%,${SRC})
${TARGET}: ${OBJ}
${OBJ}: ${SRC}
.PHONY: clean
clean:
rm -rf ${OBJ} ${TARGET}
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int main(int argc, char **argv) {
return EXIT_SUCCESS;
}
CC = gcc
CFLAGS = -std=c11 -Wall -Wextra -fsanitize=address -fsanitize=leak -pedantic -g
LDFLAGS = ${CFLAGS} -lm
SRC = $(wildcard *.c)
OBJ = $(patsubst %.c,%.o,${SRC})
TARGET = $(patsubst %.c,%,${SRC})
${TARGET}: ${OBJ}
${OBJ}: ${SRC}
.PHONY: clean
clean:
rm -rf ${OBJ} ${TARGET}
#include <stdbool.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
int main(int argc, char **argv) {
return EXIT_SUCCESS;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment