forked from lgallet/XOR-NeuralNetwork-C
fix: 🙈 Push the Makefile (why it was on the gitingore??)
This commit is contained in:
parent
4bff0893d9
commit
7b424278e8
1
.gitignore
vendored
1
.gitignore
vendored
@ -175,7 +175,6 @@ CMakeCache.txt
|
|||||||
CMakeFiles
|
CMakeFiles
|
||||||
CMakeScripts
|
CMakeScripts
|
||||||
Testing
|
Testing
|
||||||
Makefile
|
|
||||||
cmake_install.cmake
|
cmake_install.cmake
|
||||||
install_manifest.txt
|
install_manifest.txt
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
23
Makefile
Normal file
23
Makefile
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
CC := gcc
|
||||||
|
CCFLAGS := -pedantic -std=c99
|
||||||
|
OBJ := main.o
|
||||||
|
TARGET := main
|
||||||
|
|
||||||
|
all: main use
|
||||||
|
|
||||||
|
main: $(OBJ)
|
||||||
|
$(CC) $(CCFLAGS) $(OBJ) -o $(TARGET)
|
||||||
|
./main
|
||||||
|
|
||||||
|
$(OBJ): main.c
|
||||||
|
$(CC) $(CCFLAGS) -c main.c -o $(OBJ)
|
||||||
|
|
||||||
|
use: use.o
|
||||||
|
$(CC) $(CCFLAGS) use.o -o use
|
||||||
|
|
||||||
|
use.o: use.c
|
||||||
|
$(CC) $(CCFLAGS) -c use.c -o use.o
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
rm -f $(TARGET) $(OBJ) use.o use
|
Reference in New Issue
Block a user