This repository has been archived by the owner on Jul 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed steepest_neighbor (return type was wrong).
- Loading branch information
1 parent
5143748
commit 4f36130
Showing
4 changed files
with
36 additions
and
12 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 |
---|---|---|
|
@@ -2,3 +2,4 @@ seamless | |
image.jpg | ||
*~ | ||
*.swp | ||
*.o |
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 |
---|---|---|
@@ -1,2 +1,28 @@ | ||
seamless: main.c energy_functions.c pixel_access.c array_image.c | ||
gcc -Wall -Werror -pedantic-errors -std=c99 `sdl-config --cflags --libs` -lSDL_image energy_functions.c pixel_access.c array_image.c main.c -o seamless -O3 | ||
OBJS = main.o array_image.o energy_functions.o pixel_access.o | ||
|
||
CFLAGS = -c -Wall -Werror -pedantic-errors -std=c99 -O3 | ||
ifeq ($(DEBUG),1) | ||
CFLAGS += -g | ||
endif | ||
|
||
CFLAGS += `sdl-config --cflags` | ||
LIBS = `sdl-config --libs` -lSDL_image | ||
|
||
seamless: $(OBJS) | ||
gcc $(LIBS) $(OBJS) -o seamless | ||
|
||
main.o: main.c array_image.h util.h | ||
gcc $(CFLAGS) main.c | ||
|
||
array_image.o: array_image.c array_image.h pixel_access.h | ||
gcc $(CFLAGS) array_image.c | ||
|
||
energy_functions.o: energy_functions.c util.h array_image.h | ||
gcc $(CFLAGS) energy_functions.c | ||
|
||
pixel_access.o: pixel_access.c pixel_access.h | ||
gcc $(CFLAGS) pixel_access.c | ||
|
||
clean: | ||
rm -f $(OBJS) | ||
rm seamless |
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