Aggiunto ambiente di testing funzioni slegate a ncurses
This commit is contained in:
1 parent
29c375b20c
commit
619774c809
3 files changed
+27
No files matched your search
@@ -0,0 +1,21 @@
|
|||||||
|
CC = gcc
|
||||||
|
CFLAGS = -Wall -Wextra -g -DTEST_MODE
|
||||||
|
INCLUDES = -I../include
|
||||||
|
SRC_DIR = ../src
|
||||||
|
TEST_EXE = test_runner
|
||||||
|
|
||||||
|
TEST_SRCS = test.c
|
||||||
|
SRC_FILES = $(SRC_DIR)/logic.c
|
||||||
|
|
||||||
|
all: $(TEST_EXE)
|
||||||
|
|
||||||
|
$(TEST_EXE): $(TEST_SRCS)
|
||||||
|
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $(SRC_FILES) $^
|
||||||
|
|
||||||
|
run: $(TEST_EXE)
|
||||||
|
./$(TEST_EXE)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -f $(TEST_EXE) *.o
|
||||||
|
|
||||||
|
.PHONY: all run clean
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
#include "logic.h"
|
||||||
|
|
||||||
|
int main(){
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Executable
BIN
Binary file not shown.
Reference in new issue
Block a user