Changing Project Structure
This commit is contained in:
6
.vscode/tasks.json
vendored
6
.vscode/tasks.json
vendored
@@ -9,10 +9,8 @@
|
|||||||
"-Wall",
|
"-Wall",
|
||||||
"-g",
|
"-g",
|
||||||
"main.c",
|
"main.c",
|
||||||
"court.c",
|
"src/*.c",
|
||||||
"gameServer.c",
|
"src/network/*.c",
|
||||||
"term.c",
|
|
||||||
"network/*.c",
|
|
||||||
"-o",
|
"-o",
|
||||||
"netpong",
|
"netpong",
|
||||||
"-lncurses"
|
"-lncurses"
|
||||||
|
|||||||
2
Makefile
2
Makefile
@@ -2,7 +2,7 @@
|
|||||||
CC = gcc
|
CC = gcc
|
||||||
CFLAGS = -Wall -g
|
CFLAGS = -Wall -g
|
||||||
|
|
||||||
NETPONG_SRC = main.c term.c court.c gameServer.c $(wildcard network/*.c)
|
NETPONG_SRC = main.c $(wildcard src/*.c) $(wildcard src/network/*.c)
|
||||||
|
|
||||||
LIBS = -lncurses
|
LIBS = -lncurses
|
||||||
|
|
||||||
|
|||||||
2
main.c
2
main.c
@@ -1,4 +1,4 @@
|
|||||||
#include "game.h"
|
#include "include/game.h"
|
||||||
|
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "game.h"
|
#include "../include/game.h"
|
||||||
|
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "game.h"
|
#include "../include/game.h"
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "networking.h"
|
#include "../../include/network/networking.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
#include "game.h"
|
#include "../include/game.h"
|
||||||
|
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
Reference in New Issue
Block a user