changing pc
This commit is contained in:
parent
06aabe1dbf
commit
742db2cf2a
6 changed files with 155 additions and 29 deletions
9
Makefile
9
Makefile
|
@ -3,9 +3,10 @@ OJB = $(SRC:.c=.o)
|
|||
OUT = build
|
||||
|
||||
CC = /usr/bin/gcc
|
||||
CFLAGS = -ansi -Wall -std=c99
|
||||
CFLAGS = -ansi -Wall -std=c99 -O0
|
||||
CFDEBUG = -ansi -Wall -fsanitize=address -g -std=c99
|
||||
RM = /bin/rm -f $(OUT)
|
||||
PART = -D PART
|
||||
|
||||
%.o: %.c
|
||||
$(CC) -c $(CFLAGS)
|
||||
|
@ -14,10 +15,10 @@ build:
|
|||
$(CC) $(SRC) $(CFLAGS) -o $(OUT)/main.o
|
||||
|
||||
debug:
|
||||
$(CC) $(SRC) $(CFDEBUG) -o $(OUT)/main.o
|
||||
$(CC) $(SRC) $(PART)$(part) $(CFDEBUG) -o $(OUT)/main.o
|
||||
|
||||
clean:
|
||||
$(RM) $(OBJ) $(OUT)/main.o
|
||||
|
||||
run: $(SRC)
|
||||
$(CC) $(SRC) $(CFLAGS) -o $(OUT)/main.o && ./build/main.o
|
||||
run:
|
||||
$(CC) $(SRC) $(PART)$(part) $(CFLAGS) -o $(OUT)/main.o && ./build/main.o
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue