1 # Copyright (C) 2005 Jan Hutter, Martin Willi
2 # Hochschule fuer Technik Rapperswil
4 # This program is free software; you can redistribute it and/or modify it
5 # under the terms of the GNU General Public License as published by the
6 # Free Software Foundation; either version 2 of the License, or (at your
7 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
9 # This program is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 PAYLOADS_DIR= $(ENCODING_DIR)payloads/
17 OBJS+= $(BUILD_DIR)encodings.o
18 $(BUILD_DIR)encodings.o : $(PAYLOADS_DIR)encodings.c $(PAYLOADS_DIR)encodings.h
19 $(CC) $(CFLAGS) -c -o $@ $<
21 OBJS+= $(BUILD_DIR)ike_header.o
22 $(BUILD_DIR)ike_header.o : $(PAYLOADS_DIR)ike_header.c $(PAYLOADS_DIR)ike_header.h
23 $(CC) $(CFLAGS) -c -o $@ $<
25 OBJS+= $(BUILD_DIR)ke_payload.o
26 $(BUILD_DIR)ke_payload.o : $(PAYLOADS_DIR)ke_payload.c $(PAYLOADS_DIR)ke_payload.h
27 $(CC) $(CFLAGS) -c -o $@ $<
29 OBJS+= $(BUILD_DIR)nonce_payload.o
30 $(BUILD_DIR)nonce_payload.o : $(PAYLOADS_DIR)nonce_payload.c $(PAYLOADS_DIR)nonce_payload.h
31 $(CC) $(CFLAGS) -c -o $@ $<
33 OBJS+= $(BUILD_DIR)payload.o
34 $(BUILD_DIR)payload.o : $(PAYLOADS_DIR)payload.c $(PAYLOADS_DIR)payload.h
35 $(CC) $(CFLAGS) -c -o $@ $<
37 OBJS+= $(BUILD_DIR)proposal_substructure.o
38 $(BUILD_DIR)proposal_substructure.o : $(PAYLOADS_DIR)proposal_substructure.c $(PAYLOADS_DIR)proposal_substructure.h
39 $(CC) $(CFLAGS) -c -o $@ $<
41 OBJS+= $(BUILD_DIR)sa_payload.o
42 $(BUILD_DIR)sa_payload.o : $(PAYLOADS_DIR)sa_payload.c $(PAYLOADS_DIR)sa_payload.h
43 $(CC) $(CFLAGS) -c -o $@ $<
45 OBJS+= $(BUILD_DIR)transform_attribute.o
46 $(BUILD_DIR)transform_attribute.o : $(PAYLOADS_DIR)transform_attribute.c $(PAYLOADS_DIR)transform_attribute.h
47 $(CC) $(CFLAGS) -c -o $@ $<
49 OBJS+= $(BUILD_DIR)transform_substructure.o
50 $(BUILD_DIR)transform_substructure.o : $(PAYLOADS_DIR)transform_substructure.c $(PAYLOADS_DIR)transform_substructure.h
51 $(CC) $(CFLAGS) -c -o $@ $<