stage4/generate_c/Makefile
author Mario de Sousa <msousa@fe.up.pt>
Tue, 05 Apr 2011 14:17:16 +0100
changeset 280 69a307407f7b
parent 243 bdfee1f5be9e
child 279 c0453b7f99df
permissions -rwxr-xr-x
Fixing code generation of standard conversion functions.
70
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
     1
# include the system specific Makefile
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
     2
include ../../Makefile.$(shell uname)
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
     3
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
     4
default: all
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
     5
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
     6
all: generate_c.o
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
     7
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
     8
clean:
159
1e4eb0d48385 Try to clean Makefile. Not a real success.
etisserant
parents: 70
diff changeset
     9
	echo > Makefile.depend
1e4eb0d48385 Try to clean Makefile. Not a real success.
etisserant
parents: 70
diff changeset
    10
	-rm -f *.o */*.o
70
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    11
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    12
CXXFLAGS += -Wno-unused
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    13
CXXFLAGS += -I. -I../* -I../../absyntax
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    14
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    15
#how to make things from other directories if they are missing
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    16
../% /%:
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    17
	$(MAKE) -C $(@D) $(@F)
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    18
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    19
test_iec_std_lib: test_iec_std_lib.c iec_std_lib.h
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    20
	gcc -o test_iec_std_lib test_iec_std_lib.c
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    21
	
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    22
test: test_iec_std_lib
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    23
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    24
Makefile.depend depend:
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    25
	$(CXX) -MM -MG -I. *.cc \
243
bdfee1f5be9e Updated makefiles for cygwin build with no perl
Lolitech
parents: 159
diff changeset
    26
	  | sed 's/:/ Makefile.depend:/' > Makefile.depend
70
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    27
e1f0ebd2d9ec Change generate_cc to generate_c
lbessard
parents:
diff changeset
    28
include Makefile.depend