Jake Farrell | b95b0ff | 2012-03-22 21:49:10 +0000 | [diff] [blame] | 1 | # |
| 2 | # Licensed to the Apache Software Foundation (ASF) under one |
| 3 | # or more contributor license agreements. See the NOTICE file |
| 4 | # distributed with this work for additional information |
| 5 | # regarding copyright ownership. The ASF licenses this file |
| 6 | # to you under the Apache License, Version 2.0 (the |
| 7 | # "License"); you may not use this file except in compliance |
| 8 | # with the License. You may obtain a copy of the License at |
| 9 | # |
| 10 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | # |
| 12 | # Unless required by applicable law or agreed to in writing, |
| 13 | # software distributed under the License is distributed on an |
| 14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 15 | # KIND, either express or implied. See the License for the |
| 16 | # specific language governing permissions and limitations |
| 17 | # under the License. |
| 18 | # |
| 19 | |
| 20 | LIB_D_DIR = ../../lib/d |
| 21 | |
| 22 | GEN_SRC = ../gen-d/share/SharedService.d ../gen-d/share/shared_types.d \ |
| 23 | ../gen-d/tutorial/tutorial_types.d ../gen-d/tutorial/Calculator.d |
| 24 | |
| 25 | default: server client async_client |
| 26 | |
| 27 | server: server.d |
| 28 | dmd -I${LIB_D_DIR}/src -L-L${LIB_D_DIR} -L-lthriftd server.d ${GEN_SRC} |
| 29 | |
| 30 | client: client.d |
| 31 | dmd -I${LIB_D_DIR}/src -L-L${LIB_D_DIR} -L-lthriftd client.d ${GEN_SRC} |
| 32 | |
| 33 | async_client: async_client.d |
Roger Meier | b70e04c | 2012-04-28 19:20:23 +0000 | [diff] [blame] | 34 | dmd -I${LIB_D_DIR}/src -L-L${LIB_D_DIR} -L-lthriftd-event -L-lthriftd -L-levent async_client.d ${GEN_SRC} |
Jake Farrell | b95b0ff | 2012-03-22 21:49:10 +0000 | [diff] [blame] | 35 | |
| 36 | clean: |
| 37 | $(RM) -f server client async_client |