URL
https://opencores.org/ocsvn/lq057q3dc02/lq057q3dc02/trunk
Details |
Compare with Previous |
View Log
Line No. |
Rev |
Author |
Line |
1 |
5 |
jwdonal |
##
|
2 |
|
|
# GNUmakefile
|
3 |
|
|
#
|
4 |
|
|
# Version:
|
5 |
|
|
# $Id: GNUmakefile,v 1.1 2007-05-25 11:20:18 jwdonal Exp $
|
6 |
|
|
#
|
7 |
|
|
# Author:
|
8 |
|
|
# Jonathon W. Donaldson
|
9 |
|
|
##
|
10 |
|
|
|
11 |
|
|
CXX = g++
|
12 |
|
|
|
13 |
|
|
CXXFLAGS = -Wall -Werror -O
|
14 |
|
|
|
15 |
|
|
PATCH = $(shell test `uname` = SunOS && echo gpatch || echo patch)
|
16 |
|
|
TAR = $(shell test `uname` = SunOS && echo gtar || echo tar)
|
17 |
|
|
|
18 |
|
|
apps = $(patsubst %.c,%,$(wildcard *.c))
|
19 |
|
|
|
20 |
|
|
all: very_small small smiley big all_rows all_cols very_big full_screen jess
|
21 |
|
|
|
22 |
|
|
jess: $(apps)
|
23 |
|
|
./bmpParse jess.bmp jess_R.coe jess_G.coe jess_B.coe jess.hdr 0 2
|
24 |
|
|
javac *.java
|
25 |
|
|
java Gen_LCD_Image jess_R.coe jess_G.coe jess_B.coe jess.hdr &
|
26 |
|
|
|
27 |
|
|
full_screen: $(apps)
|
28 |
|
|
./bmpParse full_screen.bmp full_screen_R.coe full_screen_G.coe full_screen_B.coe full_screen.hdr 0 2
|
29 |
|
|
javac *.java
|
30 |
|
|
java Gen_LCD_Image full_screen_R.coe full_screen_G.coe full_screen_B.coe full_screen.hdr &
|
31 |
|
|
|
32 |
|
|
very_big: $(apps)
|
33 |
|
|
./bmpParse very_big.bmp very_big_R.coe very_big_G.coe very_big_B.coe very_big.hdr 0 2
|
34 |
|
|
javac *.java
|
35 |
|
|
java Gen_LCD_Image very_big_R.coe very_big_G.coe very_big_B.coe very_big.hdr &
|
36 |
|
|
|
37 |
|
|
all_cols: $(apps)
|
38 |
|
|
./bmpParse all_cols.bmp all_cols_R.coe all_cols_G.coe all_cols_B.coe all_cols.hdr 0 2
|
39 |
|
|
javac *.java
|
40 |
|
|
java Gen_LCD_Image all_cols_R.coe all_cols_G.coe all_cols_B.coe all_cols.hdr &
|
41 |
|
|
|
42 |
|
|
all_rows: $(apps)
|
43 |
|
|
./bmpParse all_rows.bmp all_rows_R.coe all_rows_G.coe all_rows_B.coe all_rows.hdr 0 2
|
44 |
|
|
javac *.java
|
45 |
|
|
java Gen_LCD_Image all_rows_R.coe all_rows_G.coe all_rows_B.coe all_rows.hdr &
|
46 |
|
|
|
47 |
|
|
big: $(apps)
|
48 |
|
|
./bmpParse big.bmp big_R.coe big_G.coe big_B.coe big.hdr 0 2
|
49 |
|
|
javac *.java
|
50 |
|
|
java Gen_LCD_Image big_R.coe big_G.coe big_B.coe big.hdr &
|
51 |
|
|
|
52 |
|
|
smiley: $(apps)
|
53 |
|
|
./bmpParse smiley.bmp smiley_R.coe smiley_G.coe smiley_B.coe smiley.hdr 0 2
|
54 |
|
|
javac *.java
|
55 |
|
|
java Gen_LCD_Image smiley_R.coe smiley_G.coe smiley_B.coe smiley.hdr &
|
56 |
|
|
|
57 |
|
|
small: $(apps)
|
58 |
|
|
./bmpParse small.bmp small_R.coe small_G.coe small_B.coe small.hdr 0 2
|
59 |
|
|
javac *.java
|
60 |
|
|
java Gen_LCD_Image small_R.coe small_G.coe small_B.coe small.hdr &
|
61 |
|
|
|
62 |
|
|
very_small: $(apps)
|
63 |
|
|
./bmpParse very_small.bmp very_small_R.coe very_small_G.coe very_small_B.coe very_small.hdr 0 2
|
64 |
|
|
javac *.java
|
65 |
|
|
java Gen_LCD_Image very_small_R.coe very_small_G.coe very_small_B.coe very_small.hdr &
|
66 |
|
|
|
67 |
|
|
%.o: %.c
|
68 |
|
|
gcc $(CXXFLAGS) -c -o $@ $<
|
69 |
|
|
|
70 |
|
|
clean:
|
71 |
|
|
rm -f *.o *.coe *.hdr
|
72 |
|
|
|
73 |
|
|
realclean: clean
|
74 |
|
|
rm -f $(apps) *.class
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.