Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the code that explains the movie Inception in 'C' language and…
… tries to implement INCEPTION movie concept programmatically
- Loading branch information
0 parents
commit ddc5968
Showing
6 changed files
with
1,611 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CC := gcc | ||
CFLAGS := -g -Wall -m32 | ||
SRC_FILES := $(wildcard *.c) | ||
OBJ_FILES := $(SRC_FILES:%.c=%.o) | ||
LDLIBS := -lpthread -lrt | ||
TARGET := inception | ||
|
||
all: $(TARGET) | ||
|
||
$(TARGET): $(OBJ_FILES) | ||
$(CC) $(CFLAGS) -g -o $@ $^ $(LDLIBS) | ||
|
||
%.o:%.c | ||
$(CC) $(CFLAGS) -c -o $@ $< | ||
|
||
clean: | ||
rm -f $(OBJ_FILES) *~ $(TARGET) |
Binary file not shown.
Oops, something went wrong.
ddc5968
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What makes you think I am not the original author of list.h? Kidding :-)
The seeds of list_head struct,list_add/del, are a bit like linux kernel list.h but broadly the dup_list,list_dump,list_destroy,etc. are completely mine.
Feel free to use it as its GPL. If you want me to change the license, I can even do that :-). In short, just take it.
ddc5968
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. It would be better to write this inside the file.
As this is "a bit like Linux kernel list.h" I will avoid it and try to find a clearly BSD-licensed one.
ddc5968
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. But check linux kernel list.h and see if there is any resemblance to the core functions above. If you find any,let me know. I quit :-)