-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README: added info about the -I makefile flag.
- Loading branch information
1 parent
7a058f0
commit e95e64d
Showing
5 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
####################### Compilation ###################### | ||
CC = cc | ||
CFLAGS = -Wall -Werror -Wextra | ||
|
||
######################## Commands ####################### | ||
RM = rm -rf | ||
|
||
######################### Files ######################### | ||
NAME = a.out | ||
OBJS = main.o | ||
|
||
all: $(NAME) | ||
|
||
$(NAME): $(OBJS) | ||
$(CC) $(CFLAGS) $(OBJS) -o $(NAME) | ||
|
||
#Try to eliminate main.d from teste folder and run make again | ||
include main.d | ||
|
||
clean: | ||
$(RM) $(OBJS) | ||
|
||
fclean: clean | ||
$(RM) $(NAME) | ||
|
||
re: fclean | ||
$(MAKE) all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* a.h :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: marvin <marvin@student.42.fr> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2023/07/30 19:02:29 by marvin #+# #+# */ | ||
/* Updated: 2023/07/30 19:02:29 by marvin ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#ifndef HEADER_H | ||
# define HEADER_H | ||
# include <stdio.h> | ||
|
||
# define NUMBER 42 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* ************************************************************************** */ | ||
/* */ | ||
/* ::: :::::::: */ | ||
/* main.c :+: :+: :+: */ | ||
/* +:+ +:+ +:+ */ | ||
/* By: marvin <marvin@student.42.fr> +#+ +:+ +#+ */ | ||
/* +#+#+#+#+#+ +#+ */ | ||
/* Created: 2023/06/01 21:43:38 by ncarvalh #+# #+# */ | ||
/* Updated: 2023/07/30 19:31:37 by marvin ### ########.fr */ | ||
/* */ | ||
/* ************************************************************************** */ | ||
|
||
#include "header.h" | ||
|
||
int main() | ||
{ | ||
printf("This is the number: %d\n", NUMBER); | ||
return 0; | ||
} |
File renamed without changes.