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